]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/mkfs.minix.8
9a6b26c54b7bfcaad1422a9fb918d7bb6ec1f7e1
[thirdparty/util-linux.git] / disk-utils / mkfs.minix.8
1 .\" Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be freely distributed.
3 .TH MKFS.MINIX 8 "June 2015" "util-linux" "System Administration"
4 .SH NAME
5 mkfs.minix \- make a Minix filesystem
6 .SH SYNOPSIS
7 .B mkfs.minix
8 [options]
9 .I device
10 .RI [ size-in-blocks ]
11 .SH DESCRIPTION
12 .B mkfs.minix
13 creates a Linux MINIX filesystem on a device (usually a disk partition).
14
15 The
16 .I device
17 is usually of the following form:
18
19 .nf
20 .RS
21 /dev/hda[1\(en8] (IDE disk 1)
22 /dev/hdb[1\(en8] (IDE disk 2)
23 /dev/sda[1\(en8] (SCSI disk 1)
24 /dev/sdb[1\(en8] (SCSI disk 2)
25 .RE
26 .fi
27
28 The device may be a block device or an image file of one, but this is not
29 enforced. Expect not much fun on a character device :-).
30 .PP
31 The
32 .I size-in-blocks
33 parameter is the desired size of the file system, in blocks.
34 It is present only for backwards compatibility.
35 If omitted the size will be determined automatically.
36 Only block counts strictly greater than 10 and strictly less than
37 65536 are allowed.
38 .SH OPTIONS
39 .TP
40 \fB\-c\fR, \fB\-\-check\fR
41 Check the device for bad blocks before creating the filesystem. If any
42 are found, the count is printed.
43 .TP
44 \fB\-n\fR, \fB\-\-namelength\fR \fIlength\fR
45 Specify the maximum length of filenames. Currently, the only allowable
46 values are 14 and 30 for file system versions 1 and 2. Version 3 allows
47 only value 60. The default is 30.
48 .TP
49 \fB\-i\fR, \fB\-\-inodes\fR \fInumber\fR
50 Specify the number of inodes for the filesystem.
51 .TP
52 \fB\-l\fR, \fB\-\-badblocks\fR \fIfilename\fR
53 Read the list of bad blocks from
54 .IR filename .
55 The file has one bad-block number per line. The count of bad blocks read
56 is printed.
57 .TP
58 .B \-1
59 Make a Minix version 1 filesystem. This is the default.
60 .TP
61 .BR \-2 , " \-v"
62 Make a Minix version 2 filesystem.
63 .TP
64 .B \-3
65 Make a Minix version 3 filesystem.
66 .TP
67 \fB\-V\fR, \fB\-\-version\fR
68 Display version information and exit. The long option cannot be combined
69 with other options.
70 .TP
71 \fB\-h\fR, \fB\-\-help\fR
72 Display help text and exit.
73 .SH EXIT STATUS
74 The exit code returned by
75 .B mkfs.minix
76 is one of the following:
77 .IP 0
78 No errors
79 .IP 8
80 Operational error
81 .IP 16
82 Usage or syntax error
83 .SH SEE ALSO
84 .BR fsck (8),
85 .BR mkfs (8),
86 .BR reboot (8)
87 .SH AVAILABILITY
88 The mkfs.minix command is part of the util-linux package and is available from
89 https://www.kernel.org/pub/linux/utils/util-linux/.