# figure out why this does this not work (for Allan...)?
# instead download Debian hurd image and mount and clear it

	# create image
	qemu-img create -f raw hurd.img 1GB

	# format the disk
	losetup /dev/loop0 hurd.img
	fdisk /dev/loop0
	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


# mount image
mkdir $ROOT/mnt
mount -o loop /dev/loop0 $ROOT/mnt

# build hurd and copy it to image
./scripts/makeall
cp -dR $ROOT/hurd/* $ROOT/mnt  (as root)

# IMPORTANT: un-mount before using in qemu
umount $ROOT/hurd
losetup -d /dev/loop0

# download a grub boot image
wget ftp://alpha.gnu.org/gnu/grub/grub-0.97-i386-pc.ext2fs
mv grub-0.97-i386-pc.ext2fs grub.img

qemu -boot a -fda grub.img -hda hurd.img
