Open main menu

CDOT Wiki β

Fixing Grub

Revision as of 14:34, 6 July 2011 by Chris Tyler (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Reinstalling the GRUB boot sectors

This is the procedure for installing the boot sectors for grub:

  1. Get to a linux prompt (live disc?)
  2. Start the grub shell: grub
  3. Find which partition has the boot files: find /grub/grub.conf
    • output will be something like: (hd0,0)
  4. Set up the root partition for grub: root (hd0,0) # Use the disk and partition numbers from the output of the "find" command
  5. Set up the grub boot sectors: setup (hd0)
Do not use the partition number!
In the 'setup' line, don't use the partition number, so that the boot sectors get installed at the start of the disk instead of the start of the partition.