Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suse 8 Enterprise -Ghost-GRUB Error

Status
Not open for further replies.

vicentell

Technical User
Sep 18, 2003
84
MX
Hi Everyone.

I created a image for a Disk Using Ghost the disk has Suse 8 Enterprise Server. At the moment to boot from this disk image I had a error on the screen GRUB. I read on this forum that I should use grub command to repair the image and be able to boot from it.

I did it but I still having the problem below Is what I am doing.




verlinux:~ # cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hda
verlinux:~ # grub-install /dev/hda2
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hda
verlinux:~ # grub-install --root-directory=/ /dev/hda2
Installation finished. No error reported.
This is the contents of the device map //boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/hda
verlinux:~ #

Any idea what elsa I can do to fix the problem and be able to boot from this image.
thanks in advance

 
You don't install grub on a partition, you've probably already screwed you image unless there's space reserved for it in the filesystem. Typically you install GRUB in the Master Boot Record on your primary device (primary to the BIOS, not the operating system).

You should install GRUB in /dev/hda, then in your grub.conf tell it to read your root partition from /dev/hda2, then set the appropriate mount points for the OS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top