|
|
f5e2ef |
.TH MKSQUASHFS 1 "2012\-06\-30" "4.2" "create and append squashfs filesystems"
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH NAME
|
|
|
f5e2ef |
mksquashfs \- tool to create and append to squashfs filesystems
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH SYNOPSIS
|
|
|
f5e2ef |
\fBmksquashfs\fR \fISOURCE\fR [\fISOURCE2\fR \fI...\fR] \fIDESTINATION\fR [\fIOPTIONS\fR]
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH DESCRIPTION
|
|
|
f5e2ef |
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.
|
|
|
f5e2ef |
.PP
|
|
|
f5e2ef |
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.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH OPTIONS
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Filesystem build options
|
|
|
f5e2ef |
.IP "\-comp \fICOMPRESSION\fR" 4
|
|
|
f5e2ef |
select \fICOMPRESSION\fR compression. Compressors available: gzip (default), lzo, xz.
|
|
|
f5e2ef |
.IP "\-b \fIBLOCK_SIZE\fR"
|
|
|
f5e2ef |
set data block to \fIBLOCK_SIZE\fR. Default 131072 bytes.
|
|
|
f5e2ef |
.IP "\-no\-exports" 4
|
|
|
f5e2ef |
don't make the filesystem exportable via NFS.
|
|
|
f5e2ef |
.IP "\-no\-sparse" 4
|
|
|
f5e2ef |
don't detect sparse files.
|
|
|
f5e2ef |
.IP "\-no\-xattrs" 4
|
|
|
f5e2ef |
don't store extended attributes.
|
|
|
f5e2ef |
.IP "\-xattrs" 4
|
|
|
f5e2ef |
store extended attributes (default).
|
|
|
f5e2ef |
.IP "\-noI" 4
|
|
|
f5e2ef |
do not compress inode table.
|
|
|
f5e2ef |
.IP "\-noD" 4
|
|
|
f5e2ef |
do not compress data blocks.
|
|
|
f5e2ef |
.IP "\-noF" 4
|
|
|
f5e2ef |
do not compress fragment blocks.
|
|
|
f5e2ef |
.IP "\-noX" 4
|
|
|
f5e2ef |
do not compress extended attributes.
|
|
|
f5e2ef |
.IP "\-no\-fragments" 4
|
|
|
f5e2ef |
do not use fragments.
|
|
|
f5e2ef |
.IP "\-always\-use\-fragments" 4
|
|
|
f5e2ef |
use fragment blocks for files larger than block size.
|
|
|
f5e2ef |
.IP "\-no\-duplicates" 4
|
|
|
f5e2ef |
do not perform duplicate checking.
|
|
|
f5e2ef |
.IP "\-all\-root" 4
|
|
|
f5e2ef |
make all files owned by root.
|
|
|
f5e2ef |
.IP "\-force\-uid uid" 4
|
|
|
f5e2ef |
set all file uids to uid.
|
|
|
f5e2ef |
.IP "\-force\-gid gid" 4
|
|
|
f5e2ef |
set all file gids to gid.
|
|
|
f5e2ef |
.IP "\-nopad" 4
|
|
|
f5e2ef |
do not pad filesystem to a multiple of 4K.
|
|
|
f5e2ef |
.IP "\-keep\-as\-directory" 4
|
|
|
f5e2ef |
if one source directory is specified, create a root directory containing that directory, rather than the contents of the directory.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Filesystem filter options
|
|
|
f5e2ef |
.IP "\-p \fIPSEUDO_DEFINITION\fR" 4
|
|
|
f5e2ef |
Add pseudo file definition.
|
|
|
f5e2ef |
.IP "\-pf \fIPSEUDO_FILE\fR" 4
|
|
|
f5e2ef |
Add list of pseudo file definitions.
|
|
|
f5e2ef |
.IP "\-sort \fISORT_FILE\fR" 4
|
|
|
f5e2ef |
sort files according to priorities in \fISORT_FILE\fR. One file or dir with priority per line. Priority \-32768 to 32767, default priority 0.
|
|
|
f5e2ef |
.IP "\-ef \fIEXCLUDE_FILE\fR" 4
|
|
|
f5e2ef |
list of exclude dirs/files. One per line.
|
|
|
f5e2ef |
.IP "\-wildcards" 4
|
|
|
f5e2ef |
Allow extended shell wildcards (globbing) to be used in exclude dirs/files
|
|
|
f5e2ef |
.IP "\-regex" 4
|
|
|
f5e2ef |
Allow POSIX regular expressions to be used in exclude dirs/files.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Filesystem append options
|
|
|
f5e2ef |
.IP "\-noappend" 4
|
|
|
f5e2ef |
do not append to existing filesystem.
|
|
|
f5e2ef |
.IP "\-root\-becomes \fINAME\fR" 4
|
|
|
f5e2ef |
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.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Mksquashfs runtime options:
|
|
|
f5e2ef |
.IP "\-version" 4
|
|
|
f5e2ef |
print version, licence and copyright message.
|
|
|
f5e2ef |
.IP "\-recover \fINAME\fR" 4
|
|
|
f5e2ef |
recover filesystem data using recovery file \fINAME\fR.
|
|
|
f5e2ef |
.IP "\-no\-recovery" 4
|
|
|
f5e2ef |
don't generate a recovery file.
|
|
|
f5e2ef |
.IP "\-info" 4
|
|
|
f5e2ef |
print files written to filesystem.
|
|
|
f5e2ef |
.IP "\-no\-progress" 4
|
|
|
f5e2ef |
don't display the progress bar.
|
|
|
f5e2ef |
.IP "\-processors \fINUMBER\fR" 4
|
|
|
f5e2ef |
Use \fINUMBER\fR processors. By default will use number of processors available.
|
|
|
f5e2ef |
.IP "\-read\-queue \fISIZE\fR" 4
|
|
|
f5e2ef |
Set input queue to \fISIZE\fR Mbytes. Default 64 Mbytes.
|
|
|
f5e2ef |
.IP "\-write\-queue \fISIZE\fR" 4
|
|
|
f5e2ef |
Set output queue to \fISIZE\fR Mbytes. Default 512 Mbytes.
|
|
|
f5e2ef |
.IP "\-fragment\-queue \fISIZE\fR" 4
|
|
|
f5e2ef |
Set fragment queue to \fISIZE\fR Mbytes. Default 64 Mbytes.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Miscellaneous options
|
|
|
f5e2ef |
.IP "\-root\-owned" 4
|
|
|
f5e2ef |
alternative name for \-all\-root.
|
|
|
f5e2ef |
.IP "\-noInodeCompression" 4
|
|
|
f5e2ef |
alternative name for \-noI.
|
|
|
f5e2ef |
.IP "\-noDataCompression" 4
|
|
|
f5e2ef |
alternative name for \-noD.
|
|
|
f5e2ef |
.IP "\-noFragmentCompression" 4
|
|
|
f5e2ef |
alternative name for \-noF.
|
|
|
f5e2ef |
.IP "\-noXattrCompression" 4
|
|
|
f5e2ef |
alternative name for \-noX.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SS Compressors available and compressor specific options
|
|
|
f5e2ef |
.IP "gzip (no options) (default)"
|
|
|
f5e2ef |
.IP "lzo (no options)"
|
|
|
f5e2ef |
.IP "xz"
|
|
|
f5e2ef |
.IP "\-Xbcj filter1,filter2,...,filterN" 4
|
|
|
f5e2ef |
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.
|
|
|
f5e2ef |
.IP "\-Xdict\-size \fIDICT_SIZE\fR" 4
|
|
|
f5e2ef |
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.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH SEE ALSO
|
|
|
f5e2ef |
unsquashfs(1)
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH HOMEPAGE
|
|
|
f5e2ef |
More information about mksquashfs and the squashfs filesystem can be found at <\fIhttp://squashfs.sourceforge.net/\fR>.
|
|
|
f5e2ef |
|
|
|
f5e2ef |
.SH AUTHOR
|
|
|
f5e2ef |
squashfs was written by Phillip Lougher <\fIplougher@users.sourceforge.net\fR>.
|
|
|
f5e2ef |
.PP
|
|
|
f5e2ef |
This manual page was written by Daniel Baumann <\fIdaniel.baumann@progress\-technologies.net\fR>.
|