Table of Contents
Grub Install
A short tutorial on GRUB reinstallation.
Live CD
This method is recomended when the MBR was overwritten and you don't have access to the Linux partition.
- boot with a LIVE CD, login to a terminal as user root.
- find out which partition holds the Linux installation:
fdisk -l /dev/hda
- mount the partition that holds the Linux installation:
mount /dev/hda5 /mnt/hda5
- change the root for the current process to match the partition name:
chroot /mnt/hda5
- put GRUB into the MBR
/sbin/grub-install /dev/hda
This command will overwrite the Master Boot sector so if you had a boot loader previously this will no longer start.
Grub console
If you have access to the grub console and somehow you changed the Linux install partition:
grub> root (hd0,4) grub> setup (hd0) grub> quit