- 1 Vapor IO Brings OpenDCRE to General Availability
- 2 VMware Takes the Wraps Off vRealize Automation and vRealize Business
- 3 Microsoft Previews Hyper-V Containers for Windows Server 2016
- 4 Mirantis Led FUEL Project Gets Installed Under OpenStack Big Tent
- 5 Red Hat Enterprise Linux 7.2 Adds Security, DR Features
tune2fs Makes It Easy to Play With Filesystems
|Tip of the Trade: With the tune2fs command you can set assorted filesystem parameters on a mounted ext2 or ext3 filesystem.
tune2fs OPTIONS device
- -c max-mount-counts enables you to change the number of mounts that trigger an automatic e2fsck check. To turn checking off altogether, use -1 or 0 – but use this with extreme caution! More useful is setting the value to different numbers for different partitions, so that you will not have every partition checked on the same bootup.
- -j adds an ext3 journal to the filesystem, enabling you to journalize your non-journaled ext2 filesystems on the fly. The -J option sets journal parameters – you can change the journal size, or use an external device for the journal, e.g. if your existing filesystem is full). Since the journal file created is immutable, the file will be moved to a special inode next time you reboot. However, if you're editing the root filesystem, you may need to run e2fsck from a rescue floppy, as the root FS is mounted read-only on boot. (Some systems, including Debian, have a workaround for this.)
- -O options sets mount options and/or filesystem features for the system. If you set -O sparse_super, this limits the number of backup superblocks and can save some space in really large filesystems. For large directories, -O dir_index uses hashed b-trees to speed up directory lookups. Set more than one option at the same time by using a comma (no space!) between options. For example, -O dir_index,sparse_super for that giant filesystem with the big directories.
Page 1 of 1