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.

  1. boot with a LIVE CD, login to a terminal as user root.
  2. find out which partition holds the Linux installation:
    fdisk -l /dev/hda
  3. mount the partition that holds the Linux installation:
    mount /dev/hda5 /mnt/hda5
  4. change the root for the current process to match the partition name:
    chroot /mnt/hda5
  5. 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

linux/tips.txt · Last modified: 2006/12/28 00:55 by 86.125.12.16