-   Red Hat (
-   -   How to reinstall GRUB?? (

Ninja_212 04-12-2004 02:33 AM

How to reinstall GRUB??
I recently lost my GRUB bootloader and now i don't know how to reinstall it again....i never use GRUB before so it is new for i don't have any idea how to fix it.

Can someone help me to solve this problem...and i dont have a bootdisk so please tell me how to reinstall GRUB using the rescue disk....

Thank's before :)

hazza 04-12-2004 02:58 AM

Boot into the rescue mode using install CD1 by typing "linux rescue" at the boot prompt. When it asks you if you want it to find your installation and mount it, let it by selecting "Continue". Once you get to the sh prompt chroot into you installation with:

# chroot /mnt/sysimage

If the disk you boot from is /dev/hda then you should be able to reinstall grub with:

# grub-install /dev/hda

Just remember to exit the chroot'ed shell before you reboot. If you reboot by "Ctrl-Alt-Del" the installer will unmount your partitions. Although it probably wouldn't hurt to try to unmount as many as you can yourself with something like:

# umount /dev/hd?[1-9]*

Ninja_212 04-12-2004 03:08 AM

Thanx's hazza it's very helpfull.. :)

All times are GMT -5. The time now is 06:47 AM.