MAKEFS(8) | System Manager's Manual | MAKEFS(8) |
makefs
— create a
filesystem image from a directory tree
makefs |
[-x ] [-B
byte-order] [-b
free-blocks] [-d
debug-mask] [-F
specfile] [-f
free-files] [-M
minimum-size] [-m
maximum-size] [-N
userdb-dir] [-o
fs-options] [-S
sector-size] [-s
image-size] [-t
fs-type] [-T
maximum-time] image-file
directory |
The utility makefs
creates a filesystem
image into image-file from the directory tree
directory. No special devices or privileges are
required to perform this task.
The options are as follows:
-B
byte-order4321
’,
‘big
’, or
‘be
’ for big endian, and
‘1234
’,
‘little
’, or
‘le
’ for little endian. Some
filesystems may have a fixed byte order; in those cases this argument will
be ignored.-b
free-blocks%
’
suffix may be provided to indicate that free-blocks
indicates a percentage of the calculated image size.-d
debug-mask-F
specfileIf a specfile entry exists in the underlying filesystem, its permissions and modification time will be used unless specifically overridden by the specfile. An error will be raised if the type of entry in the specfile conflicts with that of an existing entry.
In the opposite case (where a specfile entry does not have an entry in the underlying filesystem) the following occurs: If the specfile entry is marked optional, the specfile entry is ignored. Otherwise, the entry will be created in the image, and it is necessary to specify at least the following parameters in the specfile: type, mode, gname, or gid, and uname or uid, device (in the case of block or character devices), and link (in the case of symbolic links). If time isn't provided, the current time will be used. If flags isn't provided, the current file flags will be used. Missing regular file entries will be created as zero-length files.
-f
free-files%
’ suffix may be provided to
indicate that free-files indicates a percentage of
the calculated image size.-M
minimum-size-m
maximum-size-N
dbdir-o
fs-options-S
sector-size-s
image-size-t
fs-type-T
maximum-time-x
Where sizes are specified, a decimal number of bytes is expected. Two or more numbers may be separated by an “x” to indicate a product. Each number may have one of the following optional suffixes:
ffs images have ffs-specific optional parameters
that may be provided. Each of the options consists of a keyword, an equal
sign (‘=
’), and a value. The following
keywords are supported:
space
’ or
‘time
’.cd9660 images have ISO9660-specific optional
parameters that may be provided. The arguments consist of a keyword and,
optionally, an equal sign (‘=
’), and a
value. The following keywords are supported:
ARCHIMEDES
’ extension to
encode RISC OS metadata.i386
’,
‘mac68k
’,
‘macppc
’, or
‘powerpc
’.The boot-info-table currently consists of the following fields (all 7.3.1 numbers), offsets relative to the boot image:
Dates (to override) are in 8.4.26.1 format (YYYYmmddHHMMSS00) and Universal Time, i.e. with zero offset from Greenwich Mean Time.
The makefs
utility appeared in
NetBSD 1.6.
Support for overriding PVD dates and the boot info table was added in
Luke Mewburn
⟨lukem@NetBSD.org⟩ (original program)
Daniel Watt,
Walter Deignan,
Ryan Gabrys,
Alan Perez-Rathke,
Ram Vedam (cd9660 support)
Thorsten Glaser ⟨tg@mirbsd.org⟩
makefs
may be limited to images less than
2 GiB in size due to internal use of the long type.
December 25, 2018 | Debian |