Tune2fs Command May Increase Linux Free Disk Space
Not all of the Linux distributions allow users to tweak file system parameters during Linux installation, such as file system Reserved Block Count. Debian Linux installer allows user to change file system Reserved Block Count at Linux installation stage.
Other Linux distributions, particularly Redhat Linux, only allow user to tune file system parameters at post-installation stage, via Linux file system utility


Linux
File system Reserved Block Count is supposed to reduce Linux file system defragmentation, to allow root user login for maintenance or to allow Linux system logging facility to function properly in case file system running low of free disk space.
How to reduce Linux ext2 /ext3 file system Reserved Block Count?
File system utility
or
Reserved block count: 3399024
Free blocks: 4997248
Free inodes: 42473835
First block: 0
Block size: 4096
The block size is measured in byte unit. In this case, it’s 4,096 byte or 4KB. So, the Reserved Block Count: 3399024 is equal to 13,922,402,304 byte or roughly equivalent to 14GB.
Now, if execute the command
will set the percentage of file system reserved block count to 0% for /dev/vg0/lvol1 file system (the first column of
It’s OK to totally disable file system reserved block count, if the file system is not used by root user account or storing system log and system/program temp files (e.g. /var and /tmp). For example, file system dedicated to host database table files, Samba shares, movie or music files, etc, are safe to disable file system reserved block count.
So, if you’re running a Linux machine with 320GB SATA hard disk that storing tones of movie and mp3 files, and haven’t tune the file system reserved block count, you may tune it now to claim back as much as 16GB of free disk space!

Other Linux distributions, particularly Redhat Linux, only allow user to tune file system parameters at post-installation stage, via Linux file system utility
tune2fs.

Linux
df command output – The sum of Used column and Avail column is not tally with or equal to Size column.File system Reserved Block Count is supposed to reduce Linux file system defragmentation, to allow root user login for maintenance or to allow Linux system logging facility to function properly in case file system running low of free disk space.
How to reduce Linux ext2 /ext3 file system Reserved Block Count?
File system utility
tune2fs can be used to tune Linux ext2 / ext3 file system parameters, such as adjusting file system reserved block count, frequency of file system force-check based, maximal time between two file system checks, behavior of the kernel code when errors are detected, overriding the default ext3 journal parameters, etc.tune2fs -l /dev/hdaor
dumpe2fs -h /dev/vg0/lvol1could be used to inspect a file system superblock information. Take note on these fields of both tune2fs and dumpe2fs command output:Reserved block count: 3399024
Free blocks: 4997248
Free inodes: 42473835
First block: 0
Block size: 4096
The block size is measured in byte unit. In this case, it’s 4,096 byte or 4KB. So, the Reserved Block Count: 3399024 is equal to 13,922,402,304 byte or roughly equivalent to 14GB.
Now, if execute the command
tune2fs -m 0 /dev/vg0/lvol1will set the percentage of file system reserved block count to 0% for /dev/vg0/lvol1 file system (the first column of
df command output).It’s OK to totally disable file system reserved block count, if the file system is not used by root user account or storing system log and system/program temp files (e.g. /var and /tmp). For example, file system dedicated to host database table files, Samba shares, movie or music files, etc, are safe to disable file system reserved block count.
So, if you’re running a Linux machine with 320GB SATA hard disk that storing tones of movie and mp3 files, and haven’t tune the file system reserved block count, you may tune it now to claim back as much as 16GB of free disk space!
Custom Search






2010 •
[...] Linux is one of the many Linux distributions and one of few open-source OS with enterprise class of technical support. Indeed, [...]
[...] Now, create the new EXT3 file system on the new logical volume (LV) with 1% file system reserved block count: [...]
[...] from the ground up, I planned to install only one DB2 server and then replicate its RAID1 SCSI hard disk to the [...]
[...] some directories on live machine and restore them to DR box. Problem is that the live system has insufficient free disk space to create tarball (tar archive or .tar file), as some of the directories are bulky. In this [...]
Very helpful… thx.