about Customize hoary live-cd

Matt Zimmerman mdz at ubuntu.com
Tue May 3 20:16:06 CDT 2005


On Thu, Mar 24, 2005 at 08:47:40AM +0800, csj wrote:

> I want to rebuild the livecd to smallest base system, so I follow the
> wiki howto,
> mount /mnt/extracted_fs /mnt/build -o loop
> and  I  chroot into remove many packages and now I `df -h` and result:
> /mnt/extracted_fs     2.0G  227M  1.7G  12% /mnt/build
> 
> and then  I use create_compressed_fs to compress extracted_fs
> create_compressed_fs extracted_fs 65536 | dd
> of=extracted_cd/livecd/casper/filesystem.cloop
> and I got 504M filesystem.cloop  :/
> Isn't it should  smaller than 227M which the base system really used?

The problem is that your filesystem still contains the data which you
removed (the blocks are freed in the filesystem, but they still contain
data).

A simple solution is to create a fresh filesystem, copy all of your files
over to it, then recompress.

-- 
 - mdz



More information about the ubuntu-devel mailing list