我对 fsck 实用程序有基本的了解,但是 /etc/fstab 中的“fsck”部分表示什么?它的值为 0、1、2,这些值是多少?
谷歌搜索显示 0- 不会被检查 1- 将在启动时检查 2- 现在它是什么?
答案1
从fstab(5)
手册页:
The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order
in which filesystem checks are done at reboot time. The root
filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a
drive will be checked sequentially, but filesystems on different
drives will be checked at the same time to utilize parallelism
available in the hardware. If the sixth field is not present or
zero, a value of zero is returned and fsck will assume that the
filesystem does not need to be checked.