ergouser
Group: Members
Posts: 4
Joined: Oct. 2005 |
|
Posted: Oct. 30 2005,14:02 |
|
I did the following to get rid of a "GRUB Hard Disk Error". I need to boot a system that has the CF as the Secondary drive (/dev/hdc). On the DSL system, the CF/PCMCIA slot is /dev/hde.
If you right-click and do a Frugal Grub Install to /dev/hde. (If you take this flash and boot it in the target, you get the error in the title "GRUB Hard Disk Error" at boot up.)
Remount the CF eg on /mnt/hde1
Edit the file /mnt/hde1/boot/grub/device.map so that has one line (you could probably put others, but I didn't try):
(hd0) /dev/hde
now:
grub-install --root-directory=/mnt/hde1 /dev/hde
now re-edit the device.map file:
(hd0) /dev/hdc
unmount, etc. etc.
In my case (YMMV) the CF boots in the target system.
I know almost nothing about grub, so this discovery was just luck. I don't know why it works, or under what other situations it works. If there's a grub expert out there who would like to expose my total ignorance and show a better way, I'd like to hear about it.
|