1

Topic: mksquashfs as used in gparted-live

I want to add a couple of applications to the gparted-live image for personal use.  For some reason I am unable to get the same level of compression you have in the filesystem.squashfs file.

If I uncompress the filesystem and then use mksquashfs to re-compress the image I end up with a new squashfs which is about 20MB larger than the original.  Can you please give me a hint of what I am missing? 

I've been using mksquashfs like such:
mksquashfs uncompressed cdrom/live/filesystem.squashfs

I've also tried variations with block size and using nopad, but keep getting the same results.

Thank you for your help.

2

Re: mksquashfs as used in gparted-live

Does the maker of the live CD frequent these forums?

3

Re: mksquashfs as used in gparted-live

Before running mksquashfs, you can assign some environment variables:
export MKSQUASHFS_OPTIONS="-b 1024k -comp xz -Xbcj x86 -e boot"
Then your mksquashfs will honor that.
This was the parameters used when creating GParted live.

Steven.

4

Re: mksquashfs as used in gparted-live

stevenshiau wrote:

Before running mksquashfs, you can assign some environment variables:
export MKSQUASHFS_OPTIONS="-b 1024k -comp xz -Xbcj x86 -e boot"
Then your mksquashfs will honor that.
This was the parameters used when creating GParted live.

Steven.

Much appreciated, thanks!