1833341 Members
3701 Online
110051 Solutions
New Discussion

fsck and 0 in /etc/fstab

 

fsck and 0 in /etc/fstab

if a mounted filesystem crashes, and it has 0 in the fstab column for fsck, does that mean it will not fsck the filesystem on boot? or does the 0 merely mean under normal operating/boot conditions it will not fsck?
3 REPLIES 3
Jeff_Traigle
Honored Contributor

Re: fsck and 0 in /etc/fstab

According to the fstab man page:

A file system with a pass number of zero is ignored by the fsck command.

Therefore, regardless of it's state, it would not be checked or corrected at boot time.
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: fsck and 0 in /etc/fstab

You should man fstab for the answer. In any event, a pass number of 0 is ignored by fsck on boot. You can, of course, manually fsck the filesystem regardless of the pass number value in fstab corresponding to that filesystem.
If it ain't broke, I can fix that.

Re: fsck and 0 in /etc/fstab

Thanks for the fast reply to you both, i had read the man page, just was hoping that was under normal conditions. Thanks to you both