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