]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/mkfs.minix.8
Imported from util-linux-2.10s 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 .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 .BR "mkfs.minix [ \-c | \-l filename ] [ \-n"
8 namelength
9 .B ] [ \-i
10 inodecount
11 .B ] [ \-v ]
12 device
13 .B [
14 size-in-blocks
15 .B ]
16 .SH DESCRIPTION
17 .B mkfs.minix
18 creates a Linux MINIX file-system on a device (usually a disk partition).
19
20 The
21 .I device
22 is usually of the following form:
23
24 .nf
25 .RS
26 /dev/hda[1-8] (IDE disk 1)
27 /dev/hdb[1-8] (IDE disk 2)
28 /dev/sda[1-8] (SCSI disk 1)
29 /dev/sdb[1-8] (SCSI disk 2)
30 .RE
31 .fi
32
33 The
34 .I size-in-blocks
35 parameter is the desired size of the file system, in blocks.
36 It is present only for backwards compatibility.
37 If omitted the size will be determined automatically.
38 Only block counts strictly greater than 10 and strictly less than
39 65536 are allowed.
40 .SH OPTIONS
41 .TP
42 .B \-c
43 Check the device for bad blocks before creating the file system. If any
44 are found, the count is printed.
45 .TP
46 .BI \-n " namelength"
47 Specify the maximum length of filenames.
48 Currently, the only allowable values are 14 and 30.
49 The default is 30. Note that kernels older than 0.99p7
50 only accept namelength 14.
51 .TP
52 .BI \-i " inodecount"
53 Specify the number of inodes for the filesystem.
54 .TP
55 .BI \-l " filename"
56 Read the bad blocks list from
57 .IR filename .
58 The file has one bad block number per line. The count of bad blocks read
59 is printed.
60 .TP
61 .B \-v
62 Make a Minix version 2 filesystem.
63 .SH "EXIT CODES"
64 The exit code returned by
65 .B mkfs.minix
66 is one of the following:
67 .IP 0
68 No errors
69 .IP 8
70 Operational error
71 .IP 16
72 Usage or syntax error
73 .SH "SEE ALSO"
74 .BR mkfs (8),
75 .BR fsck (8),
76 .BR reboot (8)