If you install another operating system and by mistake you messed up, and you now feel that restoring the grub is a good option OR you install some thing, and found some operating system missing on system boot, then here are the steps to restore the grub:
Step 1: open a terminal, and gain root access, you can also use "sudo"
Step 2: run $os-probe
this will give you all the operating system present on your machine.
Step 3: $grub2-mkconfig -o /boot/grubX/grub.cfg
replace X with the version of grub you are having , in some cases it is grub and grub2 depending upon the different operating system you installed
Step 4: $grub2-install /dev/sda
this will install grub in MBR (Master Boot Record)
Use the above commands at your own risk, they always works for me. (triple boot: fedora 17B, Debby Sqeeze, and Windows 7)
Step 1: open a terminal, and gain root access, you can also use "sudo"
Step 2: run $os-probe
this will give you all the operating system present on your machine.
Step 3: $grub2-mkconfig -o /boot/grubX/grub.cfg
replace X with the version of grub you are having , in some cases it is grub and grub2 depending upon the different operating system you installed
Step 4: $grub2-install /dev/sda
this will install grub in MBR (Master Boot Record)
Use the above commands at your own risk, they always works for me. (triple boot: fedora 17B, Debby Sqeeze, and Windows 7)
No comments:
Post a Comment