Filesystems Consistency Check: fsck
文件系统一致性检查:fsck
Unmount the filesystem and fsck and re-mount it.
卸载文件系统,然后执行 fsck 命令并重新挂载它。
The other aspect of online defragmentation is the reduced time required for a file system check (fsck).
在线碎片整理还可以减少检查文件系统所需的时间(fsck)。
man fsck and info fsck provide details, as do several of the Resources included at the end of this article.
manfsck和info fsck ,以及本文最后的参考资料中都提供了详细的资料。
The FSCK utility, however, is mainly a front-end to file system-specific tools, such as e2fsck (for ext2fs, ext3fs, and ext4fs).
然而,fsck实用工具大部分是一个特定文件系统工具的前端。比如e2fsck(针对ext2fs、ext3fs和ext4fs)。
So, to fix this situation, fsck will begin an exhaustive scan and sanity check on the meta-data, correcting any errors that it finds along the way.
所以,为了弥补这种情况,fsck将开始彻底的扫描并且全面地检查元数据,修正这一过程中找到的任何错误。
With metadata-only journaling, your filesystem metadata is going to be rock solid, and you will probably never need to perform an exhaustive fsck.
使用 仅元数据日志记录,您的文件系统元数据将会异常稳固,因而可能永远不需要执行彻底 fsck。
If this happens, the FSCK command can be a lifesaver!
如果发生这种状况,那么fsck命令可以用来救急!
For one, ext3 users gain access to a rock-solid FSCK tool.
譬如,ext3用户可以使用一个稳固的fsck工具。
The one solution to both scenarios is running FSCK, as follows.
运行fsck就能够解决这两个场景中出现的问题。
System administration (debugfs, fdisk, FSCK, mount, renice, RPM).
系统管理(debugfs、fdisk、fsck、mount、renice、rpm)。
It's based on the solid ext2 filesystem code and it inherits a great FSCK tool.
它基于稳固的ext2文件系统代码,并继承了一个很好的fsck工具。
That's one of the things done by FSCK, the filesystem consistency checking program.
这是文件系统一致性检查程序fsck所做的事情之一。
In most cases, it's necessary to run FSCK or its helper program on an unmounted file system.
多数情况下,必须在一个已卸载的文件系统上运行fsck或帮助程序。
Internal snapshots are removed if the FSCK command has to modify a JFS2 file system to repair it.
如果fsck命令必须修改JFS2文件系统来修复它,将删除内部快照。
The FSCK command: Learn more about the FSCK command from the Combined IBM Systems Information Center.
fsck命令:从CombinedIBMSystems信息中心了解有关fsck命令的更多信息。
You should check the file system consistency for each file system. You can do this with the FSCK command.
您需要检查每个文件系统的一致性。
And the best strategy for fixing file system issues is the simplest: the file system check command (FSCK).
修复文件系统问题最好的策略也是最简单的:利用文件系统检查命令(fsck)。
Problems arise from the fact that FSCK must scan a filesystem's entire meta-data in order to ensure filesystem consistency.
问题出自于这样一个事实—fsck必须扫描文件系统全部的元数据,以确保文件系统的一致性。
And unlike the more traditional approach that FSCK takes, this journal replaying process does not take longer on larger filesystems.
并且与fsck所采用的传统方法不同,这个日志重放过程在大型的文件系统上并不需要花更多的时间。
Ext4 marks unused groups of blocks within the inode table to allow the FSCK process to skip them entirely to speed the check process.
ext4将未使用的块组标记到inode表中,并让fsck进程忽略它们以加快检查速度。
In the second scenario, the command FSCK is executed on the corrupted file system from the OS messages console after successful login.
在第二个场景中,成功登录之后通过操作系统消息控制台在损坏的文件系统上运行命令fsck。
In these situations, I unmount file systems and run FSCK -y against them until they come back with no errors before mounting them again.
在这些情况下,我会卸载文件系统并针对它们运行fsck—y,直至不再出现错误,然后再重新载入它们。
Rather than restoring the system or even rebuilding the operating system, you can use FSCK to repair file systems or correct damaged inodes.
您可以使用fsck来修复文件系统或者修正受损的inode,而不是还原系统、或者甚至重新构建操作系统。
If you need to recover your data, you have to use the dreaded FSCK, which has been pretty much banished from memory since journaling file systems.
如果您需要恢复您的数据,那么您必须使用讨厌的fsck,在日记记录文件系统出现以后,几乎已经很少使用这个工具了。
As part of the checking process, it is a good habit and good practice to run FSCK on the newly copied filesystem (be sure to unmount it first though).
在检查过程中,最好对刚复制的文件系统运行fsck(但是一定要先卸载它)。
Once FSCK is run for all the corrupted DASDs, the system needs to be rebooted, resulting in the image coming up successfully on the subsequent reboot.
当fsck在所有损坏的DASD上运行时,必须重启系统。下一次重新引导时,该映像将成功启动。
Faster file system checks Ext4 adds data structures that permit FSCK to skip unused parts of the disk in its checks, thus speeding up file system checks.
更快的文件系统检查Ext4添加了新的数据结构,允许fsck在检查中跳过磁盘中未使用的部分,因此加快了文件系统的检查。
This entry USES an ext3 file system, which is supported in Linux kernel versions 2.4.16 and higher, and the order for file system check (FSCK) program is set to 2.
该条目使用一个ext3文件系统,这种文件系统在2.4.16版或更高版本的Linux内核中均受支持,文件系统检查(fsck)程序的顺序被设为2。
Additionally, the crash recovery time for journaling file systems is dramatically reduced compared to more traditional file system methods (such as those that rely on FSCK).
另外,与较传统的文件系统方法(比如那些依赖于fsck的系统)相比,日志文件系统大大地缩短了系统崩溃的恢复时间。
应用推荐