-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux tune2fs Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to tune2fs on Linux, covering Arch Linux, CachyOS, and other distributions including ext filesystem tuning, filesystem parameters, and ext filesystem management.
tune2fs adjusts ext filesystem parameters.
Uses:
- Tune filesystem: Adjust filesystem settings
- Set label: Set filesystem label
- Mount options: Set default mount options
- Filesystem management: Manage ext filesystems
Note: Only works with ext2, ext3, ext4 filesystems.
Show info:
# Show filesystem information
sudo tune2fs -l /dev/sda1
# -l = list (shows information)Filesystem label:
# Set label
sudo tune2fs -L "MyLabel" /dev/sda1
# -L = label (sets filesystem label)Max mount count:
# Set max mount count
sudo tune2fs -c 30 /dev/sda1
# -c = count (checks every 30 mounts)Time interval:
# Set check interval
sudo tune2fs -i 2w /dev/sda1
# -i = interval (checks every 2 weeks)Generate new UUID:
# Generate new UUID
sudo tune2fs -U random /dev/sda1
# -U = UUID (random = new UUID)Show UUID:
# Show UUID
sudo tune2fs -l /dev/sda1 | grep UUID
# Shows filesystem UUIDUnmount device:
# Unmount before tuning
sudo umount /dev/sda1
# Then tune
sudo tune2fs -L "NewLabel" /dev/sda1This guide covered tune2fs usage, ext filesystem tuning, and filesystem management for Arch Linux, CachyOS, and other distributions.
- mkfs Guide - Creating filesystems
- fsck Guide - Filesystem checking
- Filesystem Management - Filesystem setup
-
tune2fs Documentation:
man tune2fs
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.