Linux tune2fs command details

Source: Internet
Author: User


Linux tune2fs command details just now in the experiment, that is, partitions, mount these things, because the acl is used, but in linux,/partitions have the acl parameter by default, but other common partitions have, so I just want to set the mount parameters for a partition? Du Niang replied to me, most of the following are derived from network resources. Www.2cto.com tune2fs command 1. introduction: tune2fs is used to adjust and view the file system parameters of the ext2/ext3 (now ext4 is available) file system. If the Windows platform experiences unexpected power failure and crashes, the system will generally perform self-check next time it is started up. Of course, there is also a file system self-check in Linux, and you can use the tune2fs command to customize the self-check cycle and method. Ii. Usage: Go to man by yourself. man is healthier... Description of common options:-l View File System Information-c max-mount-counts sets the number of forced self-check mounts. If yes, 1 is added for each mount conut, if the number of times is exceeded, the system will force self-check-I interval-between-checks [d | m | w] to set the time interval for force self-check [d days, m months, w weeks]-m reserved-blocks- percentage retention block percentage-j converts the ext2 file system to an ext3 File System
-L volume-label is similar to e2label, you can modify the file system label-r reserved-blocks-count to adjust the system reserved space-o [^] mount-option [,...] set or clear the indicated default mount options in the filesystem. set or clear the default mount file system option (this one is what I need .) 3. For example: www.2cto.com tune2fs-c 30/dev/hda1 sets the number of times the file system can be mounted before the force check tune2fs-c-l/dev/hda1 disable the force check mounting limit. # Some partitions are-1 by default, that is, do not check tune2fs-I 10/dev/hda1 10 days later check tune2fs-I 1d/dev/hda1 1 day check tune2fs-I 3 w/dev/hda1 3 weeks later check tune2fs -I 6 m/dev/hda1 check tune2fs-I 0/dev/hda1 disabled time check tune2fs-j/dev/hda1 add log function, convert ext2 to ext3 File System tune2fs-r 40000/dev/hda1 adjust the reserved space of the/dev/hda1 partition to 40000 disk blocks tune2fs-o acl, user_xattr/dev/hda1 set/dev/hda1 mount option, enable Posix Access Control Lists and user-specified extended attributes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.