]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/mkfs.minix.8
Imported from util-linux-2.7.1 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 "2 July 1996" "Util-linux 2.6" "Linux System Administrator's Manual"
5 .SH NAME
6 mkfs \- make a Linux MINIX filesystem
7 .SH SYNOPSIS
8 .BR "mkfs [ \-c | \-l filename ] [ \-n"
9 namelength
10 .B ] [ \-i
11 inodecount
12 .B ] [ \-v ]
13 device
14 .B [
15 size-in-blocks
16 .B ]
17 .SH DESCRIPTION
18 .B mkfs
19 creates a Linux MINIX file-system on a device (usually a disk partition).
20
21 The
22 .I device
23 is usually of the following form:
24
25 .nf
26 .RS
27 /dev/hda[1-8] (IDE disk 1)
28 /dev/hdb[1-8] (IDE disk 2)
29 /dev/sda[1-8] (SCSI disk 1)
30 /dev/sdb[1-8] (SCSI disk 2)
31 .RE
32 .fi
33
34 The
35 .I size-in-blocks
36 parameter is the desired size of the file system, in blocks. This
37 information can be determined from the
38 .BR fdisk (8)
39 or
40 .BR cfdisk (8)
41 program. If omitted it will be determined automaticaly. Only block
42 counts strictly greater than 10 and strictly less than 65536 are
43 allowed.
44 .SH OPTIONS
45 .TP
46 .B \-c
47 Check the device for bad blocks before creating the file system. If any
48 are found, the count is printed.
49 .TP
50 .BI \-n " namelength"
51 Specify the maximum length of filenames. No space is allowed between the
52 .B \-n
53 and the
54 .IR namelength. Currently, the only allowable
55 values are 14 and 30.
56 .B 30 is the default.
57 .TP
58 .BI \-i " inodecount"
59 Specify the number of inodes for the filesystem.
60 .TP
61 .BI \-l " filename"
62 Read the bad blocks list from
63 .IR filename .
64 The file has one bad block number per line. The count of bad blocks read
65 is printed.
66 .TP
67 .B \-v
68 Make a Minix version 2 filesystem.
69 .SH "EXIT CODES"
70 The exit code returned by
71 .B mkfs.minix
72 is one of the following:
73 .IP 0
74 No errors
75 .IP 8
76 Operational error
77 .IP 16
78 Usage or syntax error
79 .SH "SEE ALSO"
80 .BR fsck (8),
81 .BR mkefs (8),
82 .BR efsck (8),
83 .BR reboot (8)
84 .SH AUTHORS
85 Stared by Linus Torvalds (torvalds@cs.helsinki.fi).
86 .br
87 Error code values by Rik Faith (faith@cs.unc.edu)
88 .br
89 Inode request feature by Scott Heavner (sdh@po.cwru.edu)
90 .br
91 Support for the file system valid flag by Dr. Wettstein
92 (greg%wind.uucp@plains.nodak.edu)
93 .br
94 Check to prevent mkfs of mounted filesystem and boot sector clearing
95 by Daniel Quinlan (quinlan@yggdrasil.com)
96 .br
97 Minix v2 support by Andreas Schwab
98 (schwab@issan.informatik.uni-dortmund.de), updated by Nicolai
99 Langfeldt (janl@math.uio.no)
100 .br
101 Portability patch by Russell King.