Create filesystem with given features (filesystem options), overriding
the default filesystem options. The default features which are
enabled by default are specified by the
base_features
relation, either in the
[libdefaults]
section in the
/etc/mke2fs.conf
configuration file, or in the subsection of the
[fs_types]
section for the filesystem type as specified by the
-T
option. The filesystem type-specific configuration setting found in
the
[fs_types]
section will override the global default found in
[libdefaults].
The filesystem feature set will be further edited
using either the feature set specification specified by this option,
or if this option is not specified, by the
default_features
relation for the filesystem type being created, or in the
[libdefaults]
section of the configuration file.
The filesystem feature set is comprised of a list of features, separated
by commas, that are to be enabled. To disable a feature, simply
prefix the feature name with a caret ('^') character. The
pseudo-filesystem feature "none" will clear all filesystem features.
-
- dir_index
-
Use hashed b-trees to speed up lookups in large directories.
- filetype
-
Store file type information in directory entries.
- has_journal
-
Create an ext3 journal (as if using the
-j
option).
- journal_dev
-
Create an external ext3 journal on the given device
instead of a regular ext2 filesystem.
Note that
external-journal
must be created with the same
block size as the filesystems that will be using it.
- resize_inode
-
Reserve space so the block group descriptor table may grow in the future.
Useful for online resizing using
resize2fs.
By default
mke2fs
will attempt to reserve enough space so that the
filesystem may grow to 1024 times its initial size. This can be changed
using
resize
extended option.
- sparse_super
-
Create a filesystem with fewer superblock backup copies
(saves space on large filesystems).