Difference between revisions of "Fixing Grub"

From CDOT Wiki
Jump to: navigation, search
(Created page with '= Reinstalling the GRUB boot sectors = This is the procedure for installing the boot sectors for grub: # Get to a linux prompt (live disc?) # Start the grub shell: <code>grub</…')
 
 
Line 1: Line 1:
 +
[[Category:OPS235]][[Category:Linux]]
 
= Reinstalling the GRUB boot sectors =
 
= Reinstalling the GRUB boot sectors =
  

Latest revision as of 14:34, 6 July 2011

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)
Important.png
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.