]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - misc/mke2fs.8
Many files:
[thirdparty/e2fsprogs.git] / misc / mke2fs.8
CommitLineData
3839e657 1.\" -*- nroff -*-
a418d3ad
TT
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.
4.\"
900e4427 5.TH MKE2FS 8 "October 1995" "Version 1.01"
3839e657
TT
6.SH NAME
7mke2fs \- create a Linux second extended file system
8.SH SYNOPSIS
9.B mke2fs
10[
11.B \-c
12|
13.\" .B \-t
14.\" test
15.\" |
16.B \-l
17filename
18]
19[
20.B \-b
21block-size
22]
23[
24.B \-f
25fragment-size
26]
27[
28.B \-i
29bytes-per-inode
30]
31[
32.B \-m
33reserved-blocks-percentage
34]
35[
f3db3566
TT
36.B \-q
37]
38[
3839e657
TT
39.B \-v
40]
f3db3566
TT
41[
42.B \-S
43]
3839e657
TT
44device
45[
46blocks-count
47]
48.SH DESCRIPTION
49.B mke2fs
50is used to create a Linux second extended file system on a device (usually
51a disk partition).
52.br
53.I device
54is the special file corresponding to the device (e.g /dev/hdXX).
55.br
56.I blocks-count
57is the number of blocks on the device. If omitted,
58.B mke2fs
59automagically figures the file system size.
60.SH OPTIONS
61.TP
62.I -b block-size
63Specify the size of blocks in bytes.
64.TP
65.I -c
66Check the device for bad blocks before creating the file system, using a
67fast read-only test.
68.TP
69.I -f fragment-size
70Specify the size of fragments in bytes.
71.TP
72.I -i bytes-per-inode
73Specify the bytes/inode ratio.
74.B mke2fs
75creates an inode for every
76.I bytes-per-inode
77bytes of space on the disk. This value defaults to 4096 bytes.
78.I bytes-per-inode
79must be at least 1024.
80.TP
81.I -l filename
82Read the bad blocks list from
83.I filename
84\.
85.TP
86.I -m reserved-blocks-percentage
87Specify the percentage of reserved blocks for the super-user. This value
88defaults to 5%.
89.\" .TP
90.\" .I -t test
91.\" Check the device for bad blocks before creating the file system
92.\" using the specified test.
93.TP
f3db3566
TT
94.I -q
95Quiet execution. Useful if mke2fs is run in a script.
96.TP
3839e657
TT
97.I -v
98Verbose execution.
f3db3566
TT
99.TP
100.I -S
101Write superblock and group descriptors only. This is useful if all of
102the superblock and backup superblocks are corrupted, and a last-ditch
103recovery method is desired. It causes mke2fs to reinitialize the
104superblock and group descriptors, while not touching the inode table
105and the block and inode bitmaps. The
106.B e2fsck
107program should be run immediately after this option is used, and there
108is no gaurantee that any data will be salvageable.
3839e657
TT
109.SH AUTHOR
110This version of
111.B mke2fs
a418d3ad 112has been written by Theodore Ts'o <tytso@mit.edu>.
3839e657
TT
113.SH BUGS
114.B mke2fs
115accepts the -f option but currently ignores it because the second
116extended file system does not support fragments yet.
117.br
118There may be some other ones. Please, report them to the author.
119.SH AVAILABILITY
120.B mke2fs
f3db3566
TT
121is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in
122/pub/linux/packages/ext2fs.
3839e657 123.SH SEE ALSO
f3db3566 124.BT badblocks (8),
3839e657
TT
125.BR dumpe2fs (8),
126.BR e2fsck (8),
127.BR tune2fs (8)