[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automate creation of hard disk image
From: |
David N. Welton |
Subject: |
Re: automate creation of hard disk image |
Date: |
Thu, 20 May 2004 13:14:18 +0200 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040306) |
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,
- automate creation of hard disk image, David N. Welton, 2004/05/20
- Re: automate creation of hard disk image,
David N. Welton <=
- Re: automate creation of hard disk image, David N. Welton, 2004/05/20
- Re: automate creation of hard disk image, Yoshinori K. Okuji, 2004/05/20
- Re: automate creation of hard disk image, David N. Welton, 2004/05/21
- Re: automate creation of hard disk image, David N. Welton, 2004/05/21
- Re: automate creation of hard disk image, David N. Welton, 2004/05/23
- Re: automate creation of hard disk image, Yoshinori K. Okuji, 2004/05/23
- Re: automate creation of hard disk image, David N. Welton, 2004/05/24