Linux Disk command TUNE2FS fdisk introduction

Source: Internet
Author: User
Tags reserved

To ensure the integrity of the file system, the system every few days or restart a few times after the complete inspection, which is really necessary for workstations and servers. However, for personal and household systems, some adjustments can be made using TUNE2FS tools. Suppose the root file system is on a/dev/hda1, such as an adjustment to check the root file system for a full load of 100 times every 2 times:

The code is as follows Copy Code

# tune2fs-c 100/DEV/HDA1

Tune2fs 1.10, 24-apr-97 for EXT2 FS 0.5b, 95/08/09

Setting maximal mount Count to 100

Adjust the root file system every 2 times to complete check the interval of 5 weeks:

The code is as follows Copy Code

# tune2fs-i 5W/DEV/HDA1

Tune2fs 1.10, 24-apr-97 for EXT2 FS 0.5b, 95/08/09

Setting interval between check 3024000 seconds

In addition, the system reserve space can also be tune2fs adjusted, such as adjusting the root file system reserved space to 40,000 disk blocks:

The code is as follows Copy Code

# Tune2fs-r 40000/DEV/HDA1

Tune2fs 1.10, 24-apr-97 for EXT2 FS 0.5b, 95/08/09

Setting reserved blocks count to 40000


FDISK is a partition-used command, and this is not said. The specific situation everybody search engine searches.

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.