1MKFS.MINIX(8) System Administration MKFS.MINIX(8)
2
3
4
6 mkfs.minix - make a Minix filesystem
7
9 mkfs.minix [options] device [size-in-blocks]
10
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
27 the size will be determined automatically. Only block counts strictly
28 greater than 10 and strictly less than 65536 are allowed.
29
31 -c, --check
32 Check the device for bad blocks before creating the filesystem.
33 If 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 -i, --inodes number
41 Specify the number of inodes for the filesystem.
42
43 -l, --badblocks filename
44 Read the list of bad blocks from filename. The file has one
45 bad-block number per line. The count of bad blocks read is
46 printed.
47
48 -1 Make a Minix version 1 filesystem. This is the default.
49
50 -2, -v Make a Minix version 2 filesystem.
51
52 -3 Make a Minix version 3 filesystem.
53
54 -V, --version
55 Display version information and exit. The long option cannot be
56 combined with other options.
57
58 -h, --help
59 Display help text and exit.
60
62 The exit code returned by mkfs.minix is one of the following:
63
64 0 No errors
65
66 8 Operational error
67
68 16 Usage or syntax error
69
71 fsck(8), mkfs(8), reboot(8)
72
74 The mkfs.minix command is part of the util-linux package and is avail‐
75 able from https://www.kernel.org/pub/linux/utils/util-linux/.
76
77
78
79util-linux June 2015 MKFS.MINIX(8)