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.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.