Repairing GRUB after imaging Ubuntu with Symantec Ghost
Published in
1 min readJun 2, 2008
The GRUB bootloader sometimes doesn’t survive imaging with Symantec Ghost.
After applying an image of Ubuntu Linux to a target machine, GRUB may need to be repaired before the machine will boot properly. To repair GRUB, do the following:
- Load the Live CD, boot from it until you reach the desktop.
- Open a terminal window.
- Type “sudo grub”
- Type “root (hd0,0)”, or whatever your harddisk + boot partition numbers are.
- You can easily look up the boot partition for the version of Ubuntu on the hard drive by browsing to the hard disk from the LiveCD desktop.
- Open /boot/grub/menu.lst in a text editor.Scroll to the bottom and look up which partition the menu choice for Ubuntu points to. (hd0,0 by default)
- Type “setup (hd0)”, or whatever your harddisk number is.
- Quit grub by typing “quit”.
- Reboot the machine.
(tested with 64-bit Ubuntu Linux 8.04)