In a dual boot environment (windows + Linux), you often find your self unable to boot your linux system, when you re-installed the windows operating system , which would overwrite the Grub boot loader on the MBR of your primary booting disk drive.
How to get it back??
Its pretty Simple.
Get hold of the first disk(cdrom) of your Linux installable cdroms, I 'll consider a Redhat EL 4.0
Boot your system from the cd, type in linux rescue at the boot prompt.
You will be asked a no of questions like, locale, check the cds ...
Then you current linux installations would be searched and get mounted under /mnt/sysimage
and you will get a shell prompt, just type chroot /mnt/sysimage, to make this mount as your root system.
then just type
#/sbin/grub-install /dev/hda
(assuming the you have a ide primary hard disk)
Reboot you PC, you should see the grub boot screen..
No comments:
Post a Comment