FSCK repair damaged file system Linux is not properly shut down, and sometimes start again when the file system is reported corruption, how to repair files? First, you will be asked to enter the root user's password. 1) When the error occurs if you tell you which disk partition is a problem, such as/dev/hda3 and then use the following command to deal with it: #fsck-y/dev/hda3 after the end, reboot. That's OK! 2) If you don't know where the problem is. (This method is commonly used) can be entered directly #fsck in the subsequent confirmation dialog box: Y end, reboot. It's OK. Note: The inspection of common file systems in Linux systems is done through the fsck tool. Feature Description: Check the file system and try to fix the error. Syntax: fsck [-AANPRRSTV][-T] [File system ...] Supplemental NOTE: When the file system error four modernizations, the fsck command can be used to try to fix it. Parameter:-A automatically repairs the file system without asking any questions. -A according to the contents of the/etc/fstab configuration file, check all the file systems listed in the file. -N does not execute instructions, only the actions performed by the actual execution are listed. -p when used with the "-A" parameter, all file systems are checked at the same time. -R uses interactive mode to ask questions when performing a fix, allowing the user to confirm and decide how to handle it. -R when used with the "-A" parameter, the file system that is skipped/directory is not checked. -S executes the check job sequentially instead of concurrently. -t specifies the type of file system to check. -T displays header information when the fsck instruction is executed. -V Displays the instruction execution process. Recover deleted files: Extundelete http://zhumeng8337797.blog.163.com/blog/static/100768914201212354523149/
Linux file system and disk repair