On Sun, Jan 06, 2008 at 04:19:49PM +0900, Mike Hommey wrote:
> 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.

(...) Especially considering a bootloader is not installed and the -kernel
option of qemu is already necessary.

This also means there is no reason to bother with cylinders and heads in
the size calculation.

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to