| MAKEFS(8) | System Manager's Manual | MAKEFS(8) |
makefs — create a
file system image from a directory tree
makefs |
[-b free-blocks]
[-f free-files]
[-M minimum-size]
[-m maximum-size]
[-O offset]
[-o fs-options]
[-S sector-size]
[-s image-size]
[-T timestamp]
[-t fs-type]
image-file directory |
The utility makefs creates a file system
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
free-blocks%’ suffix may be
provided to indicate that free-blocks indicates a
percentage of the calculated image size.-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-O
offset-o
fs-options-S
sector-size-s
image-size-T
timestamp-t
fs-typeSizes are specified as a decimal number of bytes and may use a multiplier, as documented in scan_scaled(3). Two or more numbers may be separated by an ‘x’ to indicate a product.
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’ (default) 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:
i386’,
‘macppc’,
‘powerpc’, or
‘efi’.msdos images have MS-DOS-specific optional
parameters that may be provided. The arguments consist of a keyword, an
equal sign (‘=’), and a value. The
following keywords are supported:
backup_sectorblock_sizebootstrapbytes_per_sectorcreate_sizedirectory_entriesdrive_headsfat_typefloppyinfo_sectormedia_descriptornum_FATOEM_stringoffsetreserved_sectorssectors_per_clustersectors_per_fatsectors_per_tracksizevolume_idvolume_labelThe makefs utility appeared in
NetBSD 1.6.
Luke Mewburn ⟨lukem@NetBSD.org⟩ (original program), Daniel Watt, Walter Deignan, Ryan Gabrys, Alan Perez-Rathke, Ram Vedam (cd9660 support), and Christos Zoulas (msdos support).
| April 25, 2023 | Debian |