Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
tune2fs
Synopsis
tune2fs [options] device
Description
System administration command. Tune the parameters of a Linux Second Extended Filesystem by adjusting various parameters. You must specify the device on which the filesystem resides; it must not be mounted read/write when you change its parameters.
Options
- -c mount-counts
Specify the maximum number of mount counts between two checks on the filesystem.
- -e behavior
Specify the kernel’s behavior when encountering errors. behavior must be one of:
- continue
Continue as usual.
- remount-ro
Remount the offending filesystem in read-only mode.
- panic
Cause a kernel panic.
- -g group
Allow group (a group ID or name) to use reserved blocks.
- -i interval[d|w|m]
Specify the maximum interval between filesystem checks. Units may be in days (d), weeks (w), or months (m). If interval is 0, checking will not be time-dependent.
- -l
Display a list of the superblock’s contents.
- -m percentage
Specify the percentage of blocks that will be reserved for use by privileged users.
- -r num
Specify the number of blocks that will be reserved for use by privileged users.
- -u user
Allow user (a user ID or name) to use reserved blocks.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access