Upload Tizen:Base source
[framework/base/util-linux-ng.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 "2 July 1996" "Util-linux 2.6" "Linux System Administrator's Manual"
4 .SH NAME
5 mkfs.minix \- make a Linux MINIX filesystem
6 .SH SYNOPSIS
7 .B mkfs.minix
8 .RB [ \-c | \-l
9 .IR filename ]
10 .RB [ \-n
11 .IR namelength ]
12 .RB [ \-i
13 .IR inodecount ]
14 .RB [ \-v ]
15 .I device
16 .RI [ size-in-blocks ]
17 .SH DESCRIPTION
18 .B mkfs.minix
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.
37 It is present only for backwards compatibility.
38 If omitted the size will be determined automatically.
39 Only block counts strictly greater than 10 and strictly less than
40 65536 are allowed.
41 .SH OPTIONS
42 .TP
43 .B \-c
44 Check the device for bad blocks before creating the file system.  If any
45 are found, the count is printed.
46 .TP
47 .BI \-n " namelength"
48 Specify the maximum length of filenames.
49 Currently, the only allowable values are 14 and 30.
50 The default is 30. Note that kernels older than 0.99p7
51 only accept namelength 14.
52 .TP
53 .BI \-i " inodecount"
54 Specify the number of inodes for the filesystem.
55 .TP
56 .BI \-l " filename"
57 Read the bad blocks list from
58 .IR filename .
59 The file has one bad block number per line.  The count of bad blocks read
60 is printed.
61 .TP
62 .B \-v
63 Make a Minix version 2 filesystem.
64 .SH "EXIT CODES"
65 The exit code returned by
66 .B mkfs.minix
67 is one of the following:
68 .IP 0
69 No errors
70 .IP 8
71 Operational error
72 .IP 16
73 Usage or syntax error
74 .SH "SEE ALSO"
75 .BR mkfs (8),
76 .BR fsck (8),
77 .BR reboot (8)
78 .SH AVAILABILITY
79 The mkfs.minix command is part of the util-linux-ng package and is available from
80 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.