1mke2fs.conf(5) File Formats Manual mke2fs.conf(5)
2
3
4
6 mke2fs.conf - Configuration file for mke2fs
7
9 mke2fs.conf is the configuration file for mke2fs(8). It controls the
10 default parameters used by mke2fs(8) when it is creating ext2 or ext3
11 filesystems.
12
13 The mke2fs.conf file uses an INI-style format. Stanzas, or top-level
14 sections, are delimited by square braces: [ ]. Within each section,
15 each line defines a relation, which assigns tags to values, or to a
16 subsection, which contains further relations or subsections. An exam‐
17 ple of the INI-style format used by this configuration file follows
18 below:
19
20 [section1]
21 tag1 = value_a
22 tag1 = value_b
23 tag2 = value_c
24
25 [section 2]
26 tag3 = {
27 subtag1 = subtag_value_a
28 subtag1 = subtag_value_b
29 subtag2 = subtag_value_c
30 }
31 tag1 = value_d
32 tag2 = value_e
33 }
34
35 Comments are delimited by a semicolon (';') or a hash ('#') character
36 at the beginning of the comment, and are terminated by the end of line
37 character.
38
39 Tags and values must be quoted using double quotes if they contain spa‐
40 ces. Within a quoted string, the standard backslash interpretations
41 apply: "\n" (for the newline character), "\t" (for the tab character),
42 "\b" (for the backspace character), and "\\" (for the backslash charac‐
43 ter).
44
45 The following stanzas are used in the mke2fs.conf file. They will be
46 described in more detail in future sections of this document.
47
48 [defaults]
49 Contains relations which define the default parameters used by
50 mke2fs(8). In general, these defaults may be overridden by a
51 definition in the fs_types stanza, or by an command-line option
52 provided by the user.
53
54 [fs_types]
55 Contains relations which define defaults that should be used for
56 specific filesystem types. The filesystem type can be specified
57 explicitly using the -T option to mke2fs(8). If no filesystem
58 type is specified, mke2fs(8) will use the filesystem type floppy
59 if the filesystem size is less than or equal to 3 megabytes. If
60 the filesystem size is greater than 3 but less than or equal to
61 512 megabytes, mke2fs(8) will use the filesystem small. Other‐
62 wise, mke2fs(8) will use the default filesystem type default.
63
65 The following relations are defined in the [defaults] stanza.
66
67 base_features
68 This relation specifies the filesystems features which are
69 enabled in newly created filesystems. It may be overridden by
70 the base_features relation found in the filesystem-type-specific
71 subsection of the [fs_types] stanza.
72
73 default_features
74 This relation specifies a set of features that should be added
75 or removed to the features listed in the base_features relation.
76 It may be overridden by the filesystem-specific default_features
77 in the filesystem-type subsection of [fs_types], and by the -O
78 command-line option to mke2fs(8).
79
80 blocksize
81 This relation specifies the default blocksize if the user does
82 not specify a blocksize on the command line, and the filesystem-
83 type specific section of the configuration file does not specify
84 a blocksize.
85
86 inode_ratio
87 This relation specifies the default inode ratio if the user does
88 not specify one on the command line, and the filesystem-type
89 specific section of the configuration file does not specify a
90 default inode ratio.
91
92 inode_size
93 This relation specifies the default inode size if the user does
94 not specify one on the command line, and the filesystem-type
95 specific section of the configuration file does not specify a
96 default inode size.
97
99 Each tag in the [fs_types] stanza names a filesystem type which can be
100 specified via the -T option to mke2fs(8). The value of the tag is a
101 subsection where the relations in that subsection define the defaults
102 for that filesystem type. For example:
103
104 [fs_types]
105 small = {
106 blocksize = 1024
107 inode_ratio = 4096
108 }
109 floppy = {
110 blocksize = 1024
111 }
112
113 For each filesystem type, the following tags may be used in that
114 fs_type's subsection:
115
116 base_features
117 This relation specifies the features which are enabled for this
118 filesystem type.
119
120 default_features
121 This relation specifies set of features which should be enabled
122 or disabled to the features listed in the base_features rela‐
123 tion. It may be overridden by the -O command-line option to
124 mke2fs(8).
125
126 blocksize
127 This relation specifies the default blocksize if the user does
128 not specify a blocksize on the command line.
129
130 inode_ratio
131 This relation specifies the default inode ratio if the user does
132 not specify one on the command line.
133
134 inode_size
135 This relation specifies the default inode size if the user does
136 not specify one on the command line.
137
139 /etc/mke2fs.conf
140 The configuration file for mke2fs(8).
141
143 mke2fs(8)
144
145
146
147E2fsprogs version 1.40.2 July 2007 mke2fs.conf(5)