On Wed, May 23, 2001 at 02:48:23PM -0700, Peter Clark wrote:
> > Won't work. You have to have at least a couple of files (think of
> > io.sys and
> > msdos.sys) at the beginning of the drive.
> > 
> > Use dd to create a bit-idetical copy.
> > 
> > My recipe is as follows:
> > 	- make a 1G partition for windows (C:)
> > 	- install windows/drivers/utilities/whatever
> > 	- boot linux
> > 	- mount the c partition, cd into it
> > 	- dd if=/dev/zero of=zerofile bs=32M
> > 	- rm zerofile
> > 	- [the last two steps filled with zero all unused blocks]
> > 	- umount the c partition
> > 	- dd if=/dev/whaterver bs=32M | gzip > win.YYYYMMDD.img.gz
> > 	- burn it on a cd
> 
>    Question: why fill all unused blocks with zeros?
>    BTW, thanks for the tip; I think I'll use this.

Because 0s [gz]zips best! If you have trash in the unused blocks they will
needlessly take space in the .gz ...

florin

-- 

"you have moved your mouse, please reboot to make this change take effect"