# mksquashfs command script_compressedfs.squashfs
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on script_compressedfs.squashfs, block size 131072.
[==============================================================================================================|] 12/12 100%
Exportable Squashfs 4.0 filesystem, data block size 131072
compressed data, compressed metadata, compressed fragments
duplicates are removed
Filesystem size 0.96 Kbytes (0.00 Mbytes)
58.55% of uncompressed filesystem size (1.63 Kbytes)
Inode table size 199 bytes (0.19 Kbytes)
41.29% of uncompressed inode table size (482 bytes)
Directory table size 174 bytes (0.17 Kbytes)
70.16% of uncompressed directory table size (248 bytes)
Number of duplicate files found 1
Number of inodes 15
Number of files 12
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 3
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
# mkdir /mnt/squash
# mount -o loop script_compressedfs.squashfs /mnt/squash/
# ls /mnt/squash/
cut hello.c paste ver1.txt ver2.txt ver.patch
# mksquashfs /root/command script_compressedfs.squashfs -e /root/command/hello.c /root/command/paste
# mount -o loop script_compressedfs.squashfs /mnt/squash/
# ls -l /mnt/squash/
total 2
drwxr-xr-x 2 root root 31 2012-04-04 09:48 cut
-rw-r--r-- 1 root root 35 2012-04-03 12:15 ver1.txt
-rw-r--r-- 1 root root 35 2012-04-03 10:08 ver2.txt
-rw-r--r-- 1 root root 178 2012-04-03 12:15 ver.patch
# mksquashfs /root/command script_compressedfs.squashfs -ef exclud_list
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |