You just have to follow simple steps after that you will see grub2 in your system again.
(source: nobslab.com)
First of all Boot your Linux Live CD/USB then open Terminal and enter following commands:
This command for root permissions:
Check the drives number in Partition Manager :
- sudo -i
Now select your Linux installed drive and 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 see this in Partition Manager:
- sudo fdisk -l
This command will change mnt directory to root permissions:
- sudo mount /dev/sdax /mnt
- sudo mount /dev/sdax /mnt/boot
- sudo mount --bind /dev /mnt/dev/
Now grub install command and Change 'a' in "sda" with your hard drive where you want to install grub, check in Partition Manager:
- sudo chroot /mnt
Now installation finished, Enter following commands to unmount (If these two command doesn't work, then leave them):
- grub-install /dev/sda
Now reboot your pc:
- sudo umount /mnt/dev
- sudo umount /mnt
Your grub is back. That's it.
- sudo reboot
No comments:
Post a Comment