Adjusting filesystems with tune2fs

Fine Tuning

Article from Issue 179/2015
Author(s):

The advanced tune2fs command lets you check and modify the tunable parameters of ext filesystems.

Most users know that the Bash shell includes commands that change the attributes of files and directories, such as chown or chgattr. What is less well known is that filesystems have a single command for changing their attributes called tune2fs [1]. With large or multiple filesystems becoming the norm, tune2fs is an increasingly important command.

Tune2fs is bundled in e2fsprogs [2], a collection of utilities for administering ext2, 3, and 4 filesystems. Other members of e2fsprogs include e2fsck, which corrects inconsistencies, mk2fs for creating filesystems, and several defraggers. All are installed by default in most distributions.

To begin using tune2fs, you must log in as root. If you are unsure what filesystems are on your system, you can run fdisk -l to receive a list, because the options for tune2fs all require specifying a filesystem. To begin, you can list the attributes of a filesystem with

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Managing Linux Filesystems

    Even with all the talk of Big Data and the storage revolution, a steady and reliable block-based filesystem is still a central feature of most Linux systems.

  • Understanding Ext

    The ext filesystem celebrates its 25th birthday next year. A brief tour of ext history will give you some insights into how this classic Linux filesystem works – and how it has evolved to meet users' needs.

  • File systems

    Many users just opt for the defaults and don’t think about the file system when they install Linux. But if better performance is your goal, it pays to do some shopping.

  • Ext4

    The newest child in the Ext filesystem family provides better performance and supports bigger filesystems. Are you ready for Ext4?

  • Write Barriers

    Your journaling filesystem is carefully tracking write operations – but what happens when the data gets to the disk? A write barrier request can help protect your data.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News