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.