Fsck

fstab 中的 fsck 部分是什麼?

  • March 16, 2012

我對 fsck 實用程序有基本的了解,但 /etc/fstab 中的“fsck”部分錶示什麼?它有值 0、1、2 這些值是什麼?

Google搜尋說 0- 它不會被檢查 1- 將在啟動時檢查 2- 現在它是什麼?

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.

引用自:https://unix.stackexchange.com/questions/34300