Section: Maintenance Commands (8)
Updated: July 2000Index
Return to Main Contents
tune2fs - adjust tunable filesystem parameters on second extended filesystems
adjusts tunable filesystem parameters on a Linux second extended filesystem.
- -c max-mount-counts
adjust the maximal mounts count between two filesystem checks. If
is -1 then the number of times the filesystem is mounted will be disregarded
by e2fsck and the kernel.
- -e error-behavior
change the behavior of the kernel code when errors are detected.
can be one of the following:
continue Continue normal execution.
remount-ro Remount filesystem read-only.
panic Cause a kernel panic.
- -g group
set the user group which can benefit from the reserved blocks.
can be a numerical gid or a group name.
- -i interval-between-checks[d|m|w]
adjust the maximal time between two filesystem checks.
No postfix or
result in days,
in months, and
in weeks. A value of zero will disable the timedependent checking.
list the contents of the filesystem superblock.
- -m reserved-blocks-percentage
adjust the reserved blocks percentage on the given device.
- -r reserved-blocks-count
adjust the reserved blocks count on the given device.
- -s sparse_super_flag
set or reset the sparse_superblock flag. The sparse_superblock feature
saves space on really big filesystems.
The Linux 2.0 kernel does not properly support this feature. Neither do
all Linux 2.1 kernels; please don't use this unless you know what you're
- -u user
set the user who can benefit from the reserved blocks.
can be a numerical uid or a user name.
- -C mount-count
set the number of times the filesystem has been mounted.
- -L volume-label
set the volume label of the filesystem.
Ext2 filesystem labels can be at most 16 characters long; if
is longer than 16 characters,
will truncate it and print a warning message.
- -M last-mounted-directory
set the last-mounted directory for the filesystem.
- -O [^]feature[,...]
set or clear the indicated filesystem features (options) in the filesystem.
can be one of the following supported filesystem options:
which will cause the filesystem to use sparse superblocks, and
which will cause the filesystem to store file type information in
directory entries. After setting or clearing either filesystem feature,
e2fsck must be run on the filesystem.
- -U UUID
set the UUID of the filesystem. A sample UUID looks like this:
"c1b9d5a2-f162-11cf-9ece-0020afc76f16". The uuid may also be
which will set the filesystem UUID to the null UUID. The uuid may also be
which will generate a new random UUID for the filesystem.
We haven't found any bugs yet. Perhaps there are bugs but it's unlikely.
Never use tune2fs to change parameters of a read/write mounted filesystem!
Use this utility
at your own risk.
You're modifying a filesystem!
was written by Remy Card <Remy.Card@linux.org
uses the ext2fs library written by Theodore Ts'o <email@example.com
This manual page was written by Christian Kuhtz <chk@data-hh.Hanse.DE
Timedependent checking was added by Uwe Ohse <firstname.lastname@example.org
is part of the e2fsprogs package and is available for anonymous
ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
- SEE ALSO