Jump to Navigation

226 - tune2fs utility

tune2fs is a useful tool that allows users to adjust ext2 / ext3 filesystem options. Chances are that the amount of times Linux does a fsck disk scan
on boot is too frequent, or the default %1 reserved space on the file system is amounting to a significant portion of the hard drive. Using tune2fs,
you can change these settings using tune2fs.

To check block size on the file system :

# tune2fs -l /dev/sdd1 | grep -i 'block size'

Block size:               4096

 

e2fsck will check the disk every 20 mounts or 180 days or whichever come first. This is annoying especially if you have very big volume
in your system. You can disable this feature :

# tune2fs -i 0 /dev/sdb1

 

Check the filesystem or partition after 30 mounts or 3 months, whichever comes first. You need to type in this command in a root shell :

# tune2fs -c 30 -i 3m /dev/sdd1

 



Main menu 2

Story | by Dr. Radut