linux fsck
时间: 2023-10-28 16:50:55 浏览: 89
fsck (file system consistency check) is a utility in Linux and other Unix-like operating systems that checks and repairs errors on file systems. It scans the file system for inconsistencies and other errors, such as bad blocks, orphaned inodes, and incorrect file links. It can be run manually or automatically at boot time if the system detects any file system errors.
The fsck utility can be used with various file system types, including ext2, ext3, ext4, XFS, JFS, and ReiserFS. It is typically run with the -y option, which automatically repairs any errors found without prompting the user for confirmation.
It is important to note that running fsck on a mounted file system can cause data loss or corruption, so it should always be run on an unmounted file system or in a rescue environment. It is also recommended to back up important data before running fsck.
阅读全文