2 .\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH MKE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
7 mke2fs \- create a Linux second extended file system
37 .I reserved-blocks-percentage
47 .B \-r fs-revision-level
53 .B -s sparse-super-flag
67 .I last-mounted-directory
81 is used to create a Linux second extended file system on a device (usually
85 is the special file corresponding to the device (e.g /dev/hdXX).
88 is the number of blocks on the device. If omitted,
90 automagically figures the file system size.
94 Specify the size of blocks in bytes.
97 Check the device for bad blocks before creating the file system, using a
101 Specify the size of fragments in bytes.
103 .I -i bytes-per-inode
104 Specify the bytes/inode ratio.
106 creates an inode for every
108 bytes of space on the disk. This value defaults to 4096 bytes.
110 must be at least 1024.
112 .I -N number-of-inodes
113 overrides the default calculation of the number of inodes that should be
114 reserved for the filesystem (which is based on the number of blocks and
115 the bytes-per-inode ratio). This allows the user to specify the number
116 of desired inodes directly.
119 Read the bad blocks list from
123 .I -m reserved-blocks-percentage
124 Specify the percentage of reserved blocks for the super-user. This value
128 .\" Check the device for bad blocks before creating the file system
129 .\" using the specified test.
132 Manually override the default value of the "creator os" field of the
133 filesystem. Normally the creator field is set by default to the native OS
139 Quiet execution. Useful if
143 .I -s sparse-super-flag
144 If sparse-super-flag is 1, then turn on the sparse superblock flag.
145 If 0, then turn off the sparse superblock flag. (Currently, the sparse
146 superblock flag defaults to off.)
148 The Linux 2.0 kernel does not properly support this feature. Neither do
149 all Linux 2.1 kernels; please don't use this unless you know what you're
158 to run, even if the specified device is not a
159 block special device, or appears to be mounted.
162 Set the volume label for the filesystem.
165 Set the last mounted directory for the filesystem. This might be useful
166 for the sake of utilities that key off of the last mounted directory to
167 determine where the filesytem should be mounted.
170 Set the filesystem revision for the new filesystem. Note that 1.2
171 kernels only support revision 0 filesystems.
174 Set raid-related options for the filesystem. Raid options are comma
175 separated, and may take an argument using the equals ('=') sign.
176 Currently the only supported argument is
178 which takes as its argument the number of blocks in a RAID stripe.
181 Write superblock and group descriptors only. This is useful if all of
182 the superblock and backup superblocks are corrupted, and a last-ditch
183 recovery method is desired. It causes
186 superblock and group descriptors, while not touching the inode table
187 and the block and inode bitmaps. The
189 program should be run immediately after this option is used, and there
190 is no guarantee that any data will be salvageable.
193 print the version number of
199 has been written by Theodore Ts'o <tytso@mit.edu>.
202 accepts the -f option but currently ignores it because the second
203 extended file system does not support fragments yet.
205 There may be some other ones. Please, report them to the author.
208 is part of the e2fsprogs package and is available for anonymous
209 ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.