1MKFS.MINIX(8)                System Administration               MKFS.MINIX(8)
2
3
4

NAME

6       mkfs.minix - make a Minix filesystem
7

SYNOPSIS

9       mkfs.minix [options] device [size-in-blocks]
10

DESCRIPTION

12       mkfs.minix creates a Linux MINIX filesystem on a device (usually a disk
13       partition).
14
15       The device is usually of the following form:
16
17           /dev/hda[1-8] (IDE disk 1)
18           /dev/hdb[1-8] (IDE disk 2)
19           /dev/sda[1-8] (SCSI disk 1)
20           /dev/sdb[1-8] (SCSI disk 2)
21
22       The device may be a block device or an image file of one, but this is
23       not enforced. Expect not much fun on a character device :-).
24
25       The size-in-blocks parameter is the desired size of the file system, in
26       blocks. It is present only for backwards compatibility. If omitted the
27       size will be determined automatically. Only block counts strictly
28       greater than 10 and strictly less than 65536 are allowed.
29

OPTIONS

31       -c, --check
32           Check the device for bad blocks before creating the filesystem. If
33           any are found, the count is printed.
34
35       -n, --namelength length
36           Specify the maximum length of filenames. Currently, the only
37           allowable values are 14 and 30 for file system versions 1 and 2.
38           Version 3 allows only value 60. The default is 30.
39
40       --lock[=mode]
41           Use exclusive BSD lock for device or file it operates. The optional
42           argument mode can be yes, no (or 1 and 0) or nonblock. If the mode
43           argument is omitted, it defaults to yes. This option overwrites
44           environment variable $LOCK_BLOCK_DEVICE. The default is not to use
45           any lock at all, but it’s recommended to avoid collisions with
46           systemd-udevd(8) or other tools.
47
48       -i, --inodes number
49           Specify the number of inodes for the filesystem.
50
51       -l, --badblocks filename
52           Read the list of bad blocks from filename. The file has one
53           bad-block number per line. The count of bad blocks read is printed.
54
55       -1
56           Make a Minix version 1 filesystem. This is the default.
57
58       -2, -v
59           Make a Minix version 2 filesystem.
60
61       -3
62           Make a Minix version 3 filesystem.
63
64       -h, --help
65           Display help text and exit.
66
67       -V, --version
68           Print version and exit. The long option cannot be combined with
69           other options.
70

ENVIRONMENT

72       LOCK_BLOCK_DEVICE=<mode>
73           use exclusive BSD lock. The mode is "1" or "0". See --lock for more
74           details.
75

EXIT STATUS

77       The exit status returned by mkfs.minix is one of the following:
78
79       0
80           No errors
81
82       8
83           Operational error
84
85       16
86           Usage or syntax error
87

SEE ALSO

89       fsck(8), mkfs(8), reboot(8)
90

REPORTING BUGS

92       For bug reports, use the issue tracker at
93       https://github.com/util-linux/util-linux/issues.
94

AVAILABILITY

96       The mkfs.minix command is part of the util-linux package which can be
97       downloaded from Linux Kernel Archive
98       <https://www.kernel.org/pub/linux/utils/util-linux/>.
99
100
101
102util-linux 2.38                   2022-02-17                     MKFS.MINIX(8)
Impressum