help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating working qemu image


From: Allan McRae
Subject: Creating working qemu image
Date: Sun, 17 Jan 2010 01:01:09 +1000
User-agent: Thunderbird 2.0.0.23 (X11/20091001)

Hi,

Slightly (or a lot...) off-topic, but I am having difficulty creating a working QEMU image. I know my cross compiled Hurd install works, because if I take the Debian Hurd QEMU image and delete all the files and copy mine over, I can boot to a working shell.

I create the image using:
   # create image
   qemu-img create -f raw hurd.img 1GB

   # format the disk
   losetup /dev/loop0 hurd.img
   fdisk /dev/loop0   #(single partition, entire image, bootable)
   losetup -d /dev/loop0

   # make filesystem
   # partition should start at sector 63. Check with fdisk -ul hurd.img
   losetup -o 32256 /dev/loop0 hurd.img
   mkfs.ext2 -b 4096 -I 128 -o hurd -F /dev/loop0

and then mount and copy over my cross-built system. During boot I error such as:

start /hurd/ext2fs.static: ext2fs: device:hd0s1: panic: get_hypermetadata: disk
size (1069254144 bytes) too small; superblock says we need 1073709056

There are a couple of bugs that seem vaguely related (17130 and 19765) but i do not think this is the same issue given using another image works fine.

Any help is appreciated. This is my last step to creating a booting system from scratch.

Thanks,
Allan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]