Re: How to set 'e2fsck' to run at boot?
* Francois Deppierraz <francois@ctrlaltdel.ch> writes:
> Brad <lists@anomie.dhis.net> wrote:
>> Actually, the last field should be one only for the root partition. Any
>> other partitions you want fscked on boot should have a 2 there instead.
>> Partitions that should never be fscked should have a 0.
> Why does the last field depends on the partition type ?
> Man fstab say nothing about that.
It does:
The sixth field, (fs_passno), is used by the fsck(8) pro
gram to determine the order in which filesystem checks are
done at reboot time. The root filesystem should be speci
fied with a fs_passno of 1, and other filesystems should
have a fs_passno of 2. Filesystems within a drive will be
Notice "the order"? I guess it's because if the root (which holds
/sbin) is corrupted, then fsck could screw the other partitions if
fsck itself is screwed.
Reply to: