Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / misc / mke2fs.8
1 .\" -*- nroff -*-
2 .TH MKE2FS 8 "March 1994" "Version 0.5"
3 .SH NAME
4 mke2fs \- create a Linux second extended file system
5 .SH SYNOPSIS
6 .B mke2fs
7 [
8 .B \-c
9
10 .\" .B \-t
11 .\" test
12 .\" |
13 .B \-l
14 filename
15 ]
16 [
17 .B \-b
18 block-size
19 ]
20 [
21 .B \-f
22 fragment-size
23 ]
24 [
25 .B \-i
26 bytes-per-inode
27 ]
28 [
29 .B \-m
30 reserved-blocks-percentage
31 ]
32 [
33 .B \-v
34 ]
35 device
36 [
37 blocks-count
38 ]
39 .SH DESCRIPTION
40 .B mke2fs
41 is used to create a Linux second extended file system on a device (usually
42 a disk partition).
43 .br
44 .I device
45 is the special file corresponding to the device (e.g /dev/hdXX).
46 .br
47 .I blocks-count
48 is the number of blocks on the device.  If omitted,
49 .B mke2fs
50 automagically figures the file system size.
51 .SH OPTIONS
52 .TP
53 .I -b block-size
54 Specify the size of blocks in bytes.
55 .TP
56 .I -c
57 Check the device for bad blocks before creating the file system, using a
58 fast read-only test.
59 .TP
60 .I -f fragment-size
61 Specify the size of fragments in bytes.
62 .TP
63 .I -i bytes-per-inode
64 Specify the bytes/inode ratio. 
65 .B mke2fs
66 creates an inode for every
67 .I bytes-per-inode
68 bytes of space on the disk.  This value defaults to 4096 bytes.
69 .I bytes-per-inode
70 must be at least 1024.
71 .TP
72 .I -l filename
73 Read the bad blocks list from
74 .I filename
75 \.
76 .TP
77 .I -m reserved-blocks-percentage
78 Specify the percentage of reserved blocks for the super-user.  This value
79 defaults to 5%.
80 .\" .TP
81 .\" .I -t test
82 .\" Check the device for bad blocks before creating the file system
83 .\" using the specified test.
84 .TP
85 .I -v
86 Verbose execution.
87 .SH AUTHOR
88 This version of
89 .B mke2fs
90 has been written by Theodore T'so <tytso@mit.edu>.
91 .SH BUGS
92 .B mke2fs
93 accepts the -f option but currently ignores it because the second
94 extended file system does not support fragments yet.
95 .br
96 There may be some other ones.  Please, report them to the author.
97 .SH AVAILABILITY
98 .B mke2fs
99 is available for anonymous ftp from ftp.ibp.fr (132.227.60.2) in
100 /pub/linux/BETA/ext2fs.
101 .SH SEE ALSO
102 .BR dumpe2fs (8),
103 .BR e2fsck (8),
104 .BR tune2fs (8)