如果我可以在 SLES12 机器上的 /etc/fstab 中看到:
/dev/vg/lvtmp /tmp xfs defaults,nodev,nosuid 0 0
这意味着“/tmp”永远不会被fsck'ed?
答案1
如中所述fstab(5)
手册页
The sixth field (fs_passno). This field is used by fsck(8) to determine the order in which filesystem checks are done at boot time. The root filesystem should be specified with a fs_passno of 1. 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. Defaults to zero (don't fsck) if not present.
fs_passno
程序使用它fsck
来确定重新引导时执行文件系统检查的顺序。也就是说,如果第六个字段不存在或为零,则返回零值,并且fsck
假定不需要检查文件系统。