[ale] making a boot disk

Vaidhyanathan Mayilrangam vaidhy at loonys.net
Tue Aug 22 14:39:30 EDT 2000


That is because dd is going to read the whole partition.. it does not 
differentiate between data and zeros.. It is easier to use gzip -r on a mounted
system to achieve what you need..

Regards,
Vaidhy

On Tue, Aug 22, 2000 at 02:46:35PM -0400, Ken Nagorski wrote:
> Hi,
> 
> 	I am following the Linux bootdisk howto to the letter, however I
> thoguht I missed something but I still have the same prblem, I do a
> dd if=/dev/zero of=DEVICE bs=1k count=4096 to zero out the device,
> then mke2fs -m 0 -i 2000 DEVICE to make the filesystem, then when I
> transfer my boot disk stuff there, unmout it and then I issue this command
> dd if=DEVICE bs=1k | gzip -v9 > rootfs.gz (in all cases DEVICE is
> /dev/sda1) it always makes a zip file the size of the filesystem. 
> 
> 	Anyone know how to avoid this? I just want it the size of the
> files on the filesystem.
> 
> Thanks
> Ken
> 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list