How to force Feisty filesystem check on boot?
Nils Kassube
kassube at gmx.net
Thu Oct 4 20:28:20 UTC 2007
galt wrote:
> One more try, and it worked, but only for the root partition. How do I
> get it to check all ext3 partitions?
From man 5 fstab:
| The sixth field, (fs_passno), 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.
Check that in your /etc/fstab the 6th field for every ext3 partition
exists and isn't 0. It might look like this:
/dev/sda3 / ext3 defaults,errors=remount-ro 0 1
/dev/sdb1 /media/sdb1 ext3 defaults,errors=remount-ro 0 2
^
!
This is the important column. -----------------------+
Nils
More information about the ubuntu-users
mailing list