On Wed, Aug 10, 2005 at 10:48:43AM +0200, Piotr Roszatycki wrote: > Package: qemu > Version: 0.7.0.cvs20050706-0.1 > Severity: normal > > qemu-make-debian-root tool should create sparse file as qemu-img do. > > Just now qemu-make-debian-root creates i.e. one large block filled with zeros. > It should create sparse file which saves the disk space because i.e. 2G empty > file in fact writes just 10M on the disk! > > This should be correct call of `dd' utility: > > dd bs=$(($SECTORS * 512)) if=/dev/zero of=$IMAGE.ext2 count=1 > seek=$(($CYLINDERS * $HEADS - 2))
Even better: dd bs=$(($SECTORS * 512)) of=$IMAGE.ext2 count=0 seek=$(($CYLINDERS * $HEADS - 1)) I'd also say the whole creation of a partition table is pretty much useless, and the fstab could contain /dev/hda instead of /dev/hda1. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

