How to restore Grub 2 after reinstalling Windows XP/Vista/Win7 & 8
Hey guys, is your grub working perfectly fine or else here is the tutorial to Recover/Repair/Install Grub from Linux Live CD. When you change or install operating system (Windows xp, Vista, 7, 8) or Grub doesn't load.
Here is a solution to recover your grub within second and it is easy to…
Here the major requirement is Live CD's (Ubuntu 12.04/11.10/11.04/10.10/10.04/9.10/9.04/Mint).
Below are the easy steps to Recover/Reinstall/Repair grub2 from Linux Live CD/USB after Windows 7/8/vista/xp or grub doesn't work.
Here you should boot into Linux live cd and open terminal.
This command allow you to get root permissions:-
sudo -i
Here you should check the drives number in Partition Manager :
sudo fdisk -l
Here you should select linux installed drive. Then change the number in following commands (Only change 'x' with your drive number) and change (sda) with your hard drive it can be (sdb, sdc, etc) you can get this in partition manager.
sudo mount /dev/sdax /mnt
sudo mount /dev/sdax /mnt/boot
sudo mount --bind /dev /mnt/dev/
Here below command changes mnt directory permissions to root permissions:
sudo chroot /mnt
Now hrer is the grub install command, here you should change a in sda to your hard drive where you want to install grub. For that check in check in Partition Manager:
grub-install /dev/sda
Now you have successfully completed installation and enter following command to un-mount.
sudo umount /mnt/dev
sudo umount /mnt
Now reboot you will be getting grub:-
sudo reboot
Cheers now that you are in to the grub
No comments:
Post a Comment