23b1b8
.TH MKSQUASHFS 1 "2014\-05\-13" "4.3" "create and append squashfs filesystems"
23b1b8
23b1b8
.SH NAME
23b1b8
mksquashfs \- tool to create and append to squashfs filesystems
23b1b8
23b1b8
.SH SYNOPSIS
23b1b8
\fBmksquashfs\fR \fISOURCE\fR [\fISOURCE2\fR \fI...\fR] \fIDESTINATION\fR [\fIOPTIONS\fR]
23b1b8
23b1b8
.SH DESCRIPTION
23b1b8
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.
23b1b8
.PP
23b1b8
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.
23b1b8
23b1b8
.SH OPTIONS
23b1b8
23b1b8
.SS Filesystem build options
23b1b8
.IP "\-comp \fICOMPRESSION\fR" 4
23b1b8
select \fICOMPRESSION\fR compression. Compressors available: gzip (default), lzma (no kernel support), lzo, lz4 and xz.
23b1b8
.IP "\-b \fIBLOCK_SIZE\fR"
23b1b8
set data block to \fIBLOCK_SIZE\fR. Default 131072 bytes. Optionally K or M can be used as a suffix to specify kilobytes or megabytes, respectively.
23b1b8
.IP "\-no\-exports" 4
23b1b8
don't make the filesystem exportable via NFS.
23b1b8
.IP "\-no\-sparse" 4
23b1b8
don't detect sparse files.
23b1b8
.IP "\-no\-xattrs" 4
23b1b8
don't store extended attributes.
23b1b8
.IP "\-xattrs" 4
23b1b8
store extended attributes (default).
23b1b8
.IP "\-noI" 4
23b1b8
do not compress inode table.
23b1b8
.IP "\-noD" 4
23b1b8
do not compress data blocks.
23b1b8
.IP "\-noF" 4
23b1b8
do not compress fragment blocks.
23b1b8
.IP "\-noX" 4
23b1b8
do not compress extended attributes.
23b1b8
.IP "\-no\-fragments" 4
23b1b8
do not use fragments.
23b1b8
.IP "\-always\-use\-fragments" 4
23b1b8
use fragment blocks for files larger than block size.
23b1b8
.IP "\-no\-duplicates" 4
23b1b8
do not perform duplicate checking.
23b1b8
.IP "\-all\-root" 4
23b1b8
make all files owned by root.
23b1b8
.IP "\-force\-uid uid" 4
23b1b8
set all file uids to uid.
23b1b8
.IP "\-force\-gid gid" 4
23b1b8
set all file gids to gid.
23b1b8
.IP "\-nopad" 4
23b1b8
do not pad filesystem to a multiple of 4K.
23b1b8
.IP "\-keep\-as\-directory" 4
23b1b8
if one source directory is specified, create a root directory containing that directory, rather than the contents of the directory.
23b1b8
23b1b8
.SS Filesystem filter options
23b1b8
.IP "\-p \fIPSEUDO_DEFINITION\fR" 4
23b1b8
Add pseudo file definition.
23b1b8
.IP "\-pf \fIPSEUDO_FILE\fR" 4
23b1b8
Add list of pseudo file definitions.
23b1b8
.IP "\-sort \fISORT_FILE\fR" 4
23b1b8
sort files according to priorities in \fISORT_FILE\fR. One file or dir with priority per line. Priority \-32768 to 32767, default priority 0.
23b1b8
.IP "\-ef \fIEXCLUDE_FILE\fR" 4
23b1b8
list of exclude dirs/files. One per line.
23b1b8
.IP "\-wildcards" 4
23b1b8
Allow extended shell wildcards (globbing) to be used in exclude dirs/files
23b1b8
.IP "\-regex" 4
23b1b8
Allow POSIX regular expressions to be used in exclude dirs/files.
23b1b8
23b1b8
.SS Filesystem append options
23b1b8
.IP "\-noappend" 4
23b1b8
do not append to existing filesystem.
23b1b8
.IP "\-root\-becomes \fINAME\fR" 4
23b1b8
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.
23b1b8
23b1b8
.SS Mksquashfs runtime options:
23b1b8
.IP "\-version" 4
23b1b8
print version, licence and copyright message.
23b1b8
.IP "\-exit\-on\-error" 4
23b1b8
treat normally ignored errors as fatal.
23b1b8
.IP "\-recover \fINAME\fR" 4
23b1b8
recover filesystem data using recovery file \fINAME\fR.
23b1b8
.IP "\-no\-recovery" 4
23b1b8
don't generate a recovery file.
23b1b8
.IP "\-info" 4
23b1b8
print files written to filesystem.
23b1b8
.IP "\-no\-progress" 4
23b1b8
don't display the progress bar.
23b1b8
.IP "\-progress" 4
23b1b8
display progress bar when using the \-info option.
23b1b8
.IP "\-processors \fINUMBER\fR" 4
23b1b8
Use \fINUMBER\fR processors. By default will use number of processors available.
23b1b8
.IP "\-mem \fISIZE\fR" 4
23b1b8
Use \fISIZE\fR physical memory. Optionally K or M can be used as a suffix for kilobytes or megabytes, respectively. Default 25% of memory.
23b1b8
.IP "\-read\-queue \fISIZE\fR" 4
23b1b8
Deprecated. Use \-mem instead.
23b1b8
.IP "\-write\-queue \fISIZE\fR" 4
23b1b8
Deprecated. Use \-mem instead.
23b1b8
.IP "\-fragment\-queue \fISIZE\fR" 4
23b1b8
Deprecated. Use \-mem instead.
23b1b8
23b1b8
.SS Miscellaneous options
23b1b8
.IP "\-root\-owned" 4
23b1b8
alternative name for \-all\-root.
23b1b8
.IP "\-noInodeCompression" 4
23b1b8
alternative name for \-noI.
23b1b8
.IP "\-noDataCompression" 4
23b1b8
alternative name for \-noD.
23b1b8
.IP "\-noFragmentCompression" 4
23b1b8
alternative name for \-noF.
23b1b8
.IP "\-noXattrCompression" 4
23b1b8
alternative name for \-noX.
23b1b8
.IP "\-Xhelp" 4
23b1b8
print compressor options for selected compressor
23b1b8
23b1b8
.SS Compressors available and compressor specific options
23b1b8
.IP "gzip (default)"
23b1b8
.IP "\-Xcompression-level \fIcompression\-level\fR" 4
23b1b8
\fIcompression\-level\fR should be 1 .. 9 (default 9)
23b1b8
.IP "\-Xwindow\-size \fIwindow\-size\fR" 4
23b1b8
\fIwindow\-size\fR should be 8 .. 15 (default 15)
23b1b8
.IP "\-Xstrategy strategy1,strategy2,...,strategyN" 4
23b1b8
Compress using strategy1,strategy2,...,strategyN in turn and choose the best compression. Available strategies: default, filtered, huffman_only, run_length_encoded and fixed
23b1b8
.IP "lzmz (no options) (no kernel support)" 4
23b1b8
.IP "lzo" 4
23b1b8
.IP "\-Xalgorithm \fIalgorithm\fR" 4
23b1b8
Where \fIalgorithm\fR is one of: lzo1x_1, lzo1x_1_11, lzo1x_1_12, lzo1x_1_15 or lzo1x_999. (default lzo1x_999)
23b1b8
.IP "\-Xcompression\-level \fIcompression\-level\fR" 4
23b1b8
\fIcompression\-level\fR should be 1 .. 9 (default 8)
23b1b8
.IP "lz4" 4
23b1b8
.IP "\-Xhc"
23b1b8
Compress using LZ4 High Compression
23b1b8
.IP "xz" 4
23b1b8
.IP "\-Xbcj filter1,filter2,...,filterN" 4
23b1b8
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.
23b1b8
.IP "\-Xdict\-size \fIDICT_SIZE\fR" 4
23b1b8
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.
23b1b8
23b1b8
.SH SEE ALSO
23b1b8
unsquashfs(1)
23b1b8
23b1b8
.SH HOMEPAGE
23b1b8
More information about mksquashfs and the squashfs filesystem can be found at <\fIhttp://squashfs.sourceforge.net/\fR>.
23b1b8
23b1b8
.SH AUTHOR
23b1b8
squashfs was written by Phillip Lougher <\fIplougher@users.sourceforge.net\fR>.
23b1b8
.PP
23b1b8
This manual page was written by Daniel Baumann <\fIdaniel.baumann@progress\-technologies.net\fR>. With some updates for 4.3 for use with Fedora.