]>
Commit | Line | Data |
---|---|---|
6dbe3af9 KZ |
1 | .\" Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu) |
2 | .\" May be freely distributed. | |
b59c5925 | 3 | .TH MKFS.MINIX 8 "June 2015" "util-linux" "System Administration" |
6dbe3af9 | 4 | .SH NAME |
232dc924 | 5 | mkfs.minix \- make a Minix filesystem |
6dbe3af9 | 6 | .SH SYNOPSIS |
f881abbc | 7 | .B mkfs.minix |
b59c5925 | 8 | [options] |
f881abbc PB |
9 | .I device |
10 | .RI [ size-in-blocks ] | |
6dbe3af9 | 11 | .SH DESCRIPTION |
eb63b9b8 | 12 | .B mkfs.minix |
449a215f | 13 | creates a Linux MINIX filesystem on a device (usually a disk partition). |
6dbe3af9 KZ |
14 | |
15 | The | |
16 | .I device | |
17 | is usually of the following form: | |
18 | ||
19 | .nf | |
20 | .RS | |
2f52fc4f BIG |
21 | /dev/hda[1\(en8] (IDE disk 1) |
22 | /dev/hdb[1\(en8] (IDE disk 2) | |
23 | /dev/sda[1\(en8] (SCSI disk 1) | |
24 | /dev/sdb[1\(en8] (SCSI disk 2) | |
6dbe3af9 KZ |
25 | .RE |
26 | .fi | |
27 | ||
b59c5925 SK |
28 | The device may be a block device or a image file of one, but this is not |
29 | enforced. Expect not much fun on a character device :-). | |
30 | .PP | |
6dbe3af9 KZ |
31 | The |
32 | .I size-in-blocks | |
eb63b9b8 KZ |
33 | parameter is the desired size of the file system, in blocks. |
34 | It is present only for backwards compatibility. | |
35 | If omitted the size will be determined automatically. | |
36 | Only block counts strictly greater than 10 and strictly less than | |
37 | 65536 are allowed. | |
6dbe3af9 KZ |
38 | .SH OPTIONS |
39 | .TP | |
b59c5925 | 40 | \fB\-c\fR, \fB\-\-check\fR |
449a215f | 41 | Check the device for bad blocks before creating the filesystem. If any |
6dbe3af9 KZ |
42 | are found, the count is printed. |
43 | .TP | |
b59c5925 | 44 | \fB\-n\fR, \fB\-\-namelength\fR \fIlength\fR |
2159dbf3 SK |
45 | Specify the maximum length of filenames. Currently, the only allowable |
46 | values are 14 and 30 for file system versions 1 and 2. Version 3 allows | |
47 | only value 60. The default is 30. | |
6dbe3af9 | 48 | .TP |
b59c5925 | 49 | \fB\-i\fR, \fB\-\-inodes\fR \fInumber\fR |
6dbe3af9 KZ |
50 | Specify the number of inodes for the filesystem. |
51 | .TP | |
b59c5925 | 52 | \fB\-l\fR, \fB\-\-badblocks\fR \fIfilename\fR |
449a215f | 53 | Read the list of bad blocks from |
6dbe3af9 | 54 | .IR filename . |
449a215f | 55 | The file has one bad-block number per line. The count of bad blocks read |
6dbe3af9 | 56 | is printed. |
fd6b7a7f | 57 | .TP |
4bc4653e | 58 | .B \-1 |
2159dbf3 | 59 | Make a Minix version 1 filesystem. This is the default. |
4bc4653e | 60 | .TP |
449a215f | 61 | .BR \-2 , " \-v" |
fd6b7a7f | 62 | Make a Minix version 2 filesystem. |
e76cbb7c DB |
63 | .TP |
64 | .B \-3 | |
65 | Make a Minix version 3 filesystem. | |
b59c5925 SK |
66 | .TP |
67 | \fB\-V\fR, \fB\-\-version\fR | |
68 | Display version information and exit. The long option cannot be combined | |
69 | with other options. | |
70 | .TP | |
71 | \fB\-h\fR, \fB\-\-help\fR | |
72 | Display help text and exit. | |
6dbe3af9 KZ |
73 | .SH "EXIT CODES" |
74 | The exit code returned by | |
75 | .B mkfs.minix | |
76 | is one of the following: | |
77 | .IP 0 | |
78 | No errors | |
79 | .IP 8 | |
80 | Operational error | |
81 | .IP 16 | |
82 | Usage or syntax error | |
83 | .SH "SEE ALSO" | |
84 | .BR fsck (8), | |
f053ff1e | 85 | .BR mkfs (8), |
6dbe3af9 | 86 | .BR reboot (8) |
86d62711 | 87 | .SH AVAILABILITY |
601d12fb KZ |
88 | The mkfs.minix command is part of the util-linux package and is available from |
89 | ftp://ftp.kernel.org/pub/linux/utils/util-linux/. |