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