Reinstalling The Boot Loader

by Selva 2008-04-08 18:38:51

Some times the linux system may not boot,it is because the grub file may be corrupted.The grub file is corrupted because of worng partitioning after the installation using fdisk command (which will delete or corrupt the grub.conf file).
Once the grub.conf file is corrupted then system will not boot.Here is the way to reinstall the grub--boot loader and make your system to work properly.


1)Boot the system from an installation CD.

2)Type linux rescue at the installation boot prompt to enter the rescue environment.

3)Type chroot /mnt/sysimage to mount the root partition.(/mnt/sysimage is the root file sytem in resuce environment and all your files in hard drive is mounted on /mnt/sysimage )

4)Type /sbin/grub-install /dev/hda to reinstall the GRUB boot loader, where /dev/hda is the boot partition.

5)view the /boot/grub/grub.conf file

6)Reboot the system.

Tagged in:

487
like
1
dislike
0
mail
flag

You must LOGIN to add comments