]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/mkfs.minix.8
Imported from util-linux-2.5 tarball.
[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.
3.\" " for emacs hilit19 mode
4.TH MKFS 8 "10 January 1994" "Linux 0.99" "Linux Programmer's Manual"
5.SH NAME
6mkfs \- make a Linux MINIX filesystem
7.SH SYNOPSIS
8.BR "mkfs [ \-c ] [ \-n"
9namelength
10.B ] [ \-i
11inodecount
12.B ]
13device size-in-blocks
14.br
15.B "mkfs [ \-l"
16filename
17.B ]
18device size-in-blocks
19.SH DESCRIPTION
20.B mkfs
21creates a Linux MINIX file-system on a device (usually a disk partition).
22
23The
24.I device
25is usually of the following form:
26
27.nf
28.RS
29/dev/hda[1-8]
30/dev/hdb[1-8]
31/dev/sda[1-8]
32/dev/sdb[1-8]
33.RE
34.fi
35
36The
37.I size-in-blocks
38parameter is the desired size of the file system, in blocks. This
39information can be determined from the
40.BR fdisk (8)
41program. Only block counts strictly greater than 10 and strictly less than
4265536 are allowed.
43.SH OPTIONS
44.TP
45.B \-c
46Check the device for bad blocks before creating the file system. If any
47are found, the count is printed.
48.TP
49.BI \-n " namelength"
50Specify the maximum length of filenames. No space is allowed between the
51.B \-n
52and the
53.IR namelength. Currently, the only allowable
54values are 14 and 30.
55.B 30 is the default.
56.TP
57.BI \-i " inodecount"
58Specify the number of inodes for the filesystem.
59.TP
60.BI \-l " filename"
61Read the bad blocks list from
62.IR filename .
63The file has one bad block number per line. The count of bad blocks read
64is printed.
65.SH "EXIT CODES"
66The exit code returned by
67.B mkfs.minix
68is one of the following:
69.IP 0
70No errors
71.IP 8
72Operational error
73.IP 16
74Usage or syntax error
75.SH "SEE ALSO"
76.BR fsck (8),
77.BR mkefs (8),
78.BR efsck (8),
79.BR reboot (8)
80.SH AUTHOR
81Linus Torvalds (torvalds@cs.helsinki.fi)
82.br
83Error code values by Rik Faith (faith@cs.unc.edu)
84.br
85Inode request feature by Scott Heavner (sdh@po.cwru.edu)
86.br
87Support for the file system valid flag by Dr. Wettstein
88(greg%wind.uucp@plains.nodak.edu)
726f69e2
KZ
89.br
90Check to prevent mkfs of mounted filesystem and boot sector clearing
91by Daniel Quinlan (quinlan@yggdrasil.com)