.TH MKSQUASHFS 1 "2012\-06\-30" "4.2" "create and append squashfs filesystems" .SH NAME mksquashfs \- tool to create and append to squashfs filesystems .SH SYNOPSIS \fBmksquashfs\fR \fISOURCE\fR [\fISOURCE2\fR \fI...\fR] \fIDESTINATION\fR [\fIOPTIONS\fR] .SH DESCRIPTION Squashfs is a highly compressed read\-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories. Inodes in the system are very small and all blocks are packed to minimize data overhead. Block sizes greater than 4K are supported up to a maximum of 64K. .PP Squashfs is intended for general read\-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed. .SH OPTIONS .SS Filesystem build options .IP "\-comp \fICOMPRESSION\fR" 4 select \fICOMPRESSION\fR compression. Compressors available: gzip (default), lzo, xz. .IP "\-b \fIBLOCK_SIZE\fR" set data block to \fIBLOCK_SIZE\fR. Default 131072 bytes. .IP "\-no\-exports" 4 don't make the filesystem exportable via NFS. .IP "\-no\-sparse" 4 don't detect sparse files. .IP "\-no\-xattrs" 4 don't store extended attributes. .IP "\-xattrs" 4 store extended attributes (default). .IP "\-noI" 4 do not compress inode table. .IP "\-noD" 4 do not compress data blocks. .IP "\-noF" 4 do not compress fragment blocks. .IP "\-noX" 4 do not compress extended attributes. .IP "\-no\-fragments" 4 do not use fragments. .IP "\-always\-use\-fragments" 4 use fragment blocks for files larger than block size. .IP "\-no\-duplicates" 4 do not perform duplicate checking. .IP "\-all\-root" 4 make all files owned by root. .IP "\-force\-uid uid" 4 set all file uids to uid. .IP "\-force\-gid gid" 4 set all file gids to gid. .IP "\-nopad" 4 do not pad filesystem to a multiple of 4K. .IP "\-keep\-as\-directory" 4 if one source directory is specified, create a root directory containing that directory, rather than the contents of the directory. .SS Filesystem filter options .IP "\-p \fIPSEUDO_DEFINITION\fR" 4 Add pseudo file definition. .IP "\-pf \fIPSEUDO_FILE\fR" 4 Add list of pseudo file definitions. .IP "\-sort \fISORT_FILE\fR" 4 sort files according to priorities in \fISORT_FILE\fR. One file or dir with priority per line. Priority \-32768 to 32767, default priority 0. .IP "\-ef \fIEXCLUDE_FILE\fR" 4 list of exclude dirs/files. One per line. .IP "\-wildcards" 4 Allow extended shell wildcards (globbing) to be used in exclude dirs/files .IP "\-regex" 4 Allow POSIX regular expressions to be used in exclude dirs/files. .SS Filesystem append options .IP "\-noappend" 4 do not append to existing filesystem. .IP "\-root\-becomes \fINAME\fR" 4 when appending source files/directories, make the original root become a subdirectory in the new root called \fINAME\fR, rather than adding the new source items to the original root. .SS Mksquashfs runtime options: .IP "\-version" 4 print version, licence and copyright message. .IP "\-recover \fINAME\fR" 4 recover filesystem data using recovery file \fINAME\fR. .IP "\-no\-recovery" 4 don't generate a recovery file. .IP "\-info" 4 print files written to filesystem. .IP "\-no\-progress" 4 don't display the progress bar. .IP "\-processors \fINUMBER\fR" 4 Use \fINUMBER\fR processors. By default will use number of processors available. .IP "\-read\-queue \fISIZE\fR" 4 Set input queue to \fISIZE\fR Mbytes. Default 64 Mbytes. .IP "\-write\-queue \fISIZE\fR" 4 Set output queue to \fISIZE\fR Mbytes. Default 512 Mbytes. .IP "\-fragment\-queue \fISIZE\fR" 4 Set fragment queue to \fISIZE\fR Mbytes. Default 64 Mbytes. .SS Miscellaneous options .IP "\-root\-owned" 4 alternative name for \-all\-root. .IP "\-noInodeCompression" 4 alternative name for \-noI. .IP "\-noDataCompression" 4 alternative name for \-noD. .IP "\-noFragmentCompression" 4 alternative name for \-noF. .IP "\-noXattrCompression" 4 alternative name for \-noX. .SS Compressors available and compressor specific options .IP "gzip (no options) (default)" .IP "lzo (no options)" .IP "xz" .IP "\-Xbcj filter1,filter2,...,filterN" 4 Compress using filter1,filter2,...,filterN in turn (in addition to no filter), and choose the best compression. Available filters: x86, arm, armthumb, powerpc, sparc, ia64. .IP "\-Xdict\-size \fIDICT_SIZE\fR" 4 Use \fIDICT_SIZE\fR as the XZ dictionary size. The dictionary size can be specified as a percentage of the block size, or as an absolute value. The dictionary size must be less than or equal to the block size and 8192 bytes or larger. It must also be storable in the xz header as either 2^n or as 2^n+2^(n+1). Example dict\-sizes are 75%, 50%, 37.5%, 25%, or 32K, 16K, 8K etc. .SH SEE ALSO unsquashfs(1) .SH HOMEPAGE More information about mksquashfs and the squashfs filesystem can be found at <\fIhttp://squashfs.sourceforge.net/\fR>. .SH AUTHOR squashfs was written by Phillip Lougher <\fIphillip@squashfs.org.uk\fR>. .PP This manual page was written by Daniel Baumann <\fImail@daniel\-baumann.ch\fR>.