Disk

tune2fs

Adjust tunable parameters on ext2/ext3/ext4 filesystems.

Synopsis

syntax
tune2fs [OPTION]... DEVICE

Examples

Show filesystem details
sudo tune2fs -l /dev/sda1
Set volume label
sudo tune2fs -L mydata /dev/sdb1
Set fsck after 30 mounts
sudo tune2fs -c 30 /dev/sda1
Reduce reserved blocks to 1%
sudo tune2fs -m 1 /dev/sda1

Common options

FlagDescription
-lList filesystem superblock contents
-LSet volume label
-cSet max mount count before fsck
-iSet check interval
-mSet reserved blocks percentage
-jAdd journal (convert ext2 to ext3)

About tune2fs

The `tune2fs` command adjust tunable parameters on ext2/ext3/ext4 filesystems. Disk commands handle low-level storage operations including partitioning, formatting, filesystem checks, and block device management.

These tools are critical during system installation, storage expansion, data recovery, and performance tuning. Always exercise caution — disk operations can cause data loss if used incorrectly.

The command accepts 6 commonly used flags shown above, though the full set of options is available in the man page (`man tune2fs`). The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Disk Commands

Other commands in the Disk category

Related tools