試しにdevx_precise_5.7.1.sfs<https://ja.osdn.net/projects/puppylinux ... 5.7.1.sfs/>を再圧縮してみます。コード: 全て選択
mksquashfs [source folder] [SquashFS target file] -b 1048576 -comp xz -Xdict-size 100%
コード: 全て選択
~# du -b /mnt/home/puppy/devx_precise_5.7.1.sfs
155258912 /mnt/home/puppy/devx_precise_5.7.1.sfs
~# mkdir -p /mnt/devx_precise
~# mount -o loop -t squashfs /mnt/home/puppy/devx_precise_5.7.1.sfs /mnt/devx_precise
mount: warning: /mnt/devx_precise seems to be mounted read-only.
~# mksquashfs /mnt/devx_precise/ devx_precise_5.7.1-xz.sfs -b 1048576 -comp xz -Xdict-size 100%
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on devx_precise_5.7.1-xz.sfs, block size 1048576.
[===========================================================-] 23361/23361 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 1048576
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 134731.19 Kbytes (131.57 Mbytes)
23.40% of uncompressed filesystem size (575666.10 Kbytes)
Inode table size 201022 bytes (196.31 Kbytes)
23.96% of uncompressed inode table size (838894 bytes)
Directory table size 242414 bytes (236.73 Kbytes)
41.74% of uncompressed directory table size (580750 bytes)
Number of duplicate files found 475
Number of inodes 25854
Number of files 23178
Number of fragments 330
Number of symbolic links 860
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 1816
Number of ids (unique uids + gids) 2
Number of uids 2
root (0)
unknown (500)
Number of gids 2
root (0)
users (500)
~# du -b devx_precise_5.7.1-xz.sfs
137965568 devx_precise_5.7.1-xz.sfs
ちなみにxzはgzipより高圧縮ですが、展開速度は遅くなるとされています。