I am trying to change the contents of a bootable floppy to include a specific module.
On the floppy is a file 'miniroot.gz' which I have copied to my hard drive. I can gunzip the file and mount the resultant file system 'miniroot' using mount -o loop. If I unmount, without changing anything, and re-gzip the file the result is the same as the original. If I delete a file when the file system is mounted then unmount and re-gzip I end up with something that is larger than the origianl which doesn't seem to make sense to me.
I want to replace one of the modules (98k) within the file system with one of my own (68k) but always end up with a compressed file system that is larger than the original and won't fit on the disc.
Could someone please explain, to a 'bear of little brain', what I must be doing wrong?
Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain
On Mon, Apr 21, 2003 at 09:19:15PM +0100, Barry Samuels wrote:
I want to replace one of the modules (98k) within the file system with one of my own (68k) but always end up with a compressed file system that is larger than the original and won't fit on the disc.
You could try `gzip -9`?
-# --fast --best Regulate the speed of compression using the speci- fied digit #, where -1 or --fast indicates the fastest compression method (less compression) and -9 or --best indicates the slowest compression method (best compression). The default compression level is -6 (that is, biased towards high compres- sion at expense of speed).
Cheers, Alexis