When we install windows on Linux(Ubuntu/Fedora) Machine, Windows bootloader override Linux bootloader and you can not boot linux again. After Windows installation on Linux(Ubuntu/Fedora) machine,you can only see windows boot screen. To solve this problem we need to install Linux bootloader again and override it with windows bootloader.
Normally Linux use GRUB(Grand Universal Bootloader) Bootloader.
Windows use BootMGR(Boot Manager).
Now follow the steps to get you Linux(Ubuntu/Fedora) Operating System Back.
Step1: Download the ISO of System Rescue CD from it's website
http://www.sysresccd.org/SystemRescueCd_Homepage
Now either burn it on cd/dvd or burn it on pendrive.
Step 2: Reboot your system via this DVD/Pendrive and run SystemRescue OS
Step 3: Open the terminal and use following commands.
Command 1: fsarchiver probe simple
here check for linux boot partition or linux partition i.e. sda1 , sda2 ..etc..
Command 2: mkdir /mnt/linux
Command 3: mount /dev/sda2 /mnt/linux
here my linux boot partition name is sda2. You need to write your own linux partition name that you had from command 1.
Command 4: mount -o bind /proc /mnt/linux/proc
Command 5: mount -o bind /dev /mnt/linux/dev
Command 6: mount -o bind /sys /mnt/linux/sys
Command 7: chroot /mnt/linux /bin/bash
Command 8: grub-install /dev/sda
Command 9: umount /mnt/linux/dev
Command 10: umount /mnt/linux/proc
Command 11: umount /mnt/linux/sys
Command 12: umount /mnt/linux/boot
Command 13: umount /mnt/linux
Normally Linux use GRUB(Grand Universal Bootloader) Bootloader.
Windows use BootMGR(Boot Manager).
Now follow the steps to get you Linux(Ubuntu/Fedora) Operating System Back.
Step1: Download the ISO of System Rescue CD from it's website
http://www.sysresccd.org/SystemRescueCd_Homepage
Now either burn it on cd/dvd or burn it on pendrive.
Step 2: Reboot your system via this DVD/Pendrive and run SystemRescue OS
Step 3: Open the terminal and use following commands.
Command 1: fsarchiver probe simple
here check for linux boot partition or linux partition i.e. sda1 , sda2 ..etc..
Command 2: mkdir /mnt/linux
Command 3: mount /dev/sda2 /mnt/linux
here my linux boot partition name is sda2. You need to write your own linux partition name that you had from command 1.
Command 4: mount -o bind /proc /mnt/linux/proc
Command 5: mount -o bind /dev /mnt/linux/dev
Command 6: mount -o bind /sys /mnt/linux/sys
Command 7: chroot /mnt/linux /bin/bash
Command 8: grub-install /dev/sda
Command 9: umount /mnt/linux/dev
Command 10: umount /mnt/linux/proc
Command 11: umount /mnt/linux/sys
Command 12: umount /mnt/linux/boot
Command 13: umount /mnt/linux
or you could try grub-install windows.
ReplyDelete