summaryrefslogtreecommitdiffstats
path: root/upstream/debian-bookworm/man8/mkfs.minix.8
blob: 0d089be6ba6c14fbb11bbd9066e6c38beef6158a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
'\" t
.\"     Title: mkfs.minix
.\"    Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.15
.\"      Date: 2022-05-11
.\"    Manual: System Administration
.\"    Source: util-linux 2.38.1
.\"  Language: English
.\"
.TH "MKFS.MINIX" "8" "2022-05-11" "util\-linux 2.38.1" "System Administration"
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.ss \n[.ss] 0
.nh
.ad l
.de URL
\fI\\$2\fP <\\$1>\\$3
..
.als MTO URL
.if \n[.g] \{\
.  mso www.tmac
.  am URL
.    ad l
.  .
.  am MTO
.    ad l
.  .
.  LINKSTYLE blue R < >
.\}
.SH "NAME"
mkfs.minix \- make a Minix filesystem
.SH "SYNOPSIS"
.sp
\fBmkfs.minix\fP [options] \fIdevice\fP [\fIsize\-in\-blocks\fP]
.SH "DESCRIPTION"
.sp
\fBmkfs.minix\fP creates a Linux MINIX filesystem on a device (usually a disk partition).
.sp
The \fIdevice\fP is usually of the following form:
.sp
.if n .RS 4
.nf
.fam C
/dev/hda[1\-8] (IDE disk 1)
/dev/hdb[1\-8] (IDE disk 2)
/dev/sda[1\-8] (SCSI disk 1)
/dev/sdb[1\-8] (SCSI disk 2)
.fam
.fi
.if n .RE
.sp
The device may be a block device or an image file of one, but this is not enforced. Expect not much fun on a character device :\-).
.sp
The \fIsize\-in\-blocks\fP parameter is the desired size of the file system, in blocks. It is present only for backwards compatibility. If omitted the size will be determined automatically. Only block counts strictly greater than 10 and strictly less than 65536 are allowed.
.SH "OPTIONS"
.sp
\fB\-c\fP, \fB\-\-check\fP
.RS 4
Check the device for bad blocks before creating the filesystem. If any are found, the count is printed.
.RE
.sp
\fB\-n\fP, \fB\-\-namelength\fP \fIlength\fP
.RS 4
Specify the maximum length of filenames. Currently, the only allowable values are 14 and 30 for file system versions 1 and 2. Version 3 allows only value 60. The default is 30.
.RE
.sp
\fB\-\-lock\fP[=\fImode\fP]
.RS 4
Use exclusive BSD lock for device or file it operates. The optional argument \fImode\fP can be \fByes\fP, \fBno\fP (or 1 and 0) or \fBnonblock\fP. If the \fImode\fP argument is omitted, it defaults to \fByes\fP. This option overwrites environment variable \fB$LOCK_BLOCK_DEVICE\fP. The default is not to use any lock at all, but it\(cqs recommended to avoid collisions with \fBsystemd\-udevd\fP(8) or other tools.
.RE
.sp
\fB\-i\fP, \fB\-\-inodes\fP \fInumber\fP
.RS 4
Specify the number of inodes for the filesystem.
.RE
.sp
\fB\-l\fP, \fB\-\-badblocks\fP \fIfilename\fP
.RS 4
Read the list of bad blocks from \fIfilename\fP. The file has one bad\-block number per line. The count of bad blocks read is printed.
.RE
.sp
\fB\-1\fP
.RS 4
Make a Minix version 1 filesystem. This is the default.
.RE
.sp
\fB\-2\fP, \fB\-v\fP
.RS 4
Make a Minix version 2 filesystem.
.RE
.sp
\fB\-3\fP
.RS 4
Make a Minix version 3 filesystem.
.RE
.sp
\fB\-h\fP, \fB\-\-help\fP
.RS 4
Display help text and exit.
.RE
.sp
\fB\-V\fP, \fB\-\-version\fP
.RS 4
Print version and exit.
The long option cannot be combined with other options.
.RE
.SH "ENVIRONMENT"
.sp
LOCK_BLOCK_DEVICE=<mode>
.RS 4
use exclusive BSD lock. The mode is "1" or "0". See \fB\-\-lock\fP for more details.
.RE
.SH "EXIT STATUS"
.sp
The exit status returned by \fBmkfs.minix\fP is one of the following:
.sp
0
.RS 4
No errors
.RE
.sp
8
.RS 4
Operational error
.RE
.sp
16
.RS 4
Usage or syntax error
.RE
.SH "SEE ALSO"
.sp
\fBfsck\fP(8),
\fBmkfs\fP(8),
\fBreboot\fP(8)
.SH "REPORTING BUGS"
.sp
For bug reports, use the issue tracker at \c
.URL "https://github.com/util\-linux/util\-linux/issues" "" "."
.SH "AVAILABILITY"
.sp
The \fBmkfs.minix\fP command is part of the util\-linux package which can be downloaded from \c
.URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."