1MKFS.EROFS(1)               General Commands Manual              MKFS.EROFS(1)
2
3
4

NAME

6       mkfs.erofs - tool to create an EROFS filesystem
7

SYNOPSIS

9       mkfs.erofs [OPTIONS] DESTINATION SOURCE
10

DESCRIPTION

12       EROFS  is  a  new  enhanced lightweight linux read-only filesystem with
13       modern designs (eg. no  buffer  head,  reduced  metadata,  inline  xat‐
14       trs/data, etc.) for scenarios which need high-performance read-only re‐
15       quirements, e.g. Android OS for smartphones and LIVECDs.
16
17       It also provides fixed-sized output compression support, which improves
18       storage  density,  keeps relatively higher compression ratios, which is
19       more useful to achieve high performance for embedded devices with  lim‐
20       ited  memory  since  it  has unnoticable memory overhead and page cache
21       thrashing.
22
23       mkfs.erofs is used to create such EROFS  filesystem  DESTINATION  image
24       file from SOURCE directory.
25

OPTIONS

27       -z compression-algorithm [,#]
28              Set  an algorithm for file compression, which can be set with an
29              optional compression level separated by a comma.
30
31       -C max-pcluster-size
32              Specify the maximum size of compress physical cluster in  bytes.
33              It may enable big pcluster feature if needed (Linux v5.13+).
34
35       -d #   Specify the level of debugging messages. The default is 2, which
36              shows basic warning messages.
37
38       -x #   Specify the upper limit of an xattr which is still inlined.  The
39              default is 2.  Disable storing xattrs if < 0.
40
41       -E extended-option [,...]
42              Set  extended  options  for the filesystem. Extended options are
43              comma separated, and may take an argument using the equals ('=')
44              sign.  The following extended options are supported:
45
46                   legacy-compress
47                          Disable  "decompression in-place" and "compacted in‐
48                          dexes" support, which is used when generating  EROFS
49                          images for kernel version < 5.3.
50
51                   force-inode-compact
52                          Forcely  generate compact inodes (32-byte inodes) to
53                          output.
54
55                   force-inode-extended
56                          Forcely generate extended inodes (64-byte inodes) to
57                          output.
58
59       -T #   Set  all  files to the given UNIX timestamp. Reproducible builds
60              requires setting all to a specific one.
61
62       -U UUID
63              Set the universally unique identifier (UUID) of  the  filesystem
64              to UUID.  The format of the UUID is a series of hex digits sepa‐
65              rated          by          hyphens,          like          this:
66              "c1b9d5a2-f162-11cf-9ece-0020afc76f16".
67
68       --exclude-path=path
69              Ignore  file  that matches the exact literal path.  You may give
70              multiple `--exclude-path' options.
71
72       --exclude-regex=regex
73              Ignore files that match the given regular expression.   You  may
74              give multiple `--exclude-regex` options.
75
76       --file-contexts=file
77              Specify a file_contexts file to setup / override selinux labels.
78
79       --force-uid=UID
80              Set all file uids to UID.
81
82       --force-gid=GID
83              Set all file gids to GID.
84
85       --all-root
86              Make all files owned by root.
87
88       --help Display this help and exit.
89
90       --max-extent-bytes #
91              Specify maximum decompressed extent size # in bytes.
92

AUTHOR

94       This   version   of   mkfs.erofs   is  written  by  Li  Guifu  <blucer‐
95       lee@gmail.com>, Miao Xie <miaoxie@huawei.com> and Gao Xiang <xiang@ker‐
96       nel.org> with continuously improvements from others.
97
98       This manual page was written by Gao Xiang <xiang@kernel.org>.
99

AVAILABILITY

101       mkfs.erofs  is  part  of  erofs-utils  package  and  is  available from
102       git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git.
103

SEE ALSO

105       mkfs(8).
106
107
108
109
110                                                                 MKFS.EROFS(1)
Impressum