Re: customizing disk: free sectors problem

[email protected] (Sean Straw / PSE) Sat, 10 May 2003 16:41:36 -0700
Newsgroups gmane.linux.tomsrtbt
Message-ID <[email protected]>
At 17:28 2003-05-06 +0200, Agora did say:

>These files takes all together 725.328 bytes,
>so I deleted some files that I don't need in
>the diskette (in particular, nc, zcat, gzip,
>gunzip, traceroute, telnet and wget binaries).
>The deleted files free 767.711 bytes,
>so the copied files should fit in the
>diskette, aren't they?

Not necessarily.  Keep in mind that the content gets COMPRESSED.  The 
sector counts are post-compression, the filesizes are 
pre-compression.  Also, as has been pointed out, busybox represents a lot 
of the program content on TomsRTBT.

For a simple gauge, gzip -9 the files you're adding, then gzip -9 the files 
you're deleting  You'll need to delete material until the compressed 
amounts are about equal.

You might consider producing a 2.88MB diskette image and producing a 
bootable CD with that.  That'll gain you ~1.1MB of *post-compression* 
filespace even before you've had to delete anything.

---
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

  Sean B. Straw / Professional Software Engineering
  Post Box 2395 / San Rafael, CA  94912-2395