Forrest logo
tool overview
On this page you find all important commands for the CLI tool tune2fs. If the command you are looking for is missing please ask our AI.

tune2fs

Tune2fs is a command line tool used in Unix-like operating systems, primarily for modifying ext2, ext3, and ext4 file system parameters. The tool enables users to adjust various file system settings and features. Using tune2fs, you can alter parameters like the file system label, maximum mount count, interval between file system checks, and reserved block percentage. It also allows you to enable or disable features like journal checksumming and file system barriers. The tool provides detailed information about the file system, including its UUID, block count, and inode count. Additionally, tune2fs can display the current status and configuration of the file system, giving users valuable insights into its properties and options.

List of commands for tune2fs:

  • tune2fs:tldr:8f8c7 tune2fs: Enable journaling for a filesystem.
    $ tune2fs -o^${nobarrier} ${-dev-sdXN}
    try on your machine
    explain this command
  • tune2fs:tldr:9f3e4 tune2fs: Enable discard and user-specified extended attributes for a filesystem.
    $ tune2fs -o ${discard,user_xattr} ${-dev-sdXN}
    try on your machine
    explain this command
  • tune2fs:tldr:d8e43 tune2fs: Set the filesystem label to MY_LABEL.
    $ tune2fs -L ${'MY_LABEL'} ${-dev-sdXN}
    try on your machine
    explain this command
tool overview