David N. Welton wrote:

[ please CC replies to me - thanks! ]

Hi, I have a disk image I am creating in a file, hd.img.

I've been attempting, so far without success, to automate the installation of grub to this disk. It's not a complex setup - just a HD image for use with bochs (and eventually on the target system), but things don't seem to be working. Having looked around with google, I found commands such as device (hd0) /home/davidw/hd.img that were supposed to do the mapping, but it gets the geometry all wrong. I tried correcting it with geometry, but that didn't help either.

Any suggestions would be most welcome.

Hrm... what I am trying to do is very similar to mkbimage, but that's not working either:


grub> geometry (hd0) 93 16 63
drive 0x80: C/H/S = 93/16/63, The number of sectors = 93744, /root/hd.image
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed


Error 22: No such partition
grub> geometry  -w  (hd0) 93 16 63

Error 11: Unrecognized device string

Thanks again,


_______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to