How to force Feisty filesystem check on boot?

galt galt at gmx.ch
Fri Oct 5 02:55:14 UTC 2007


Thanks, that worked. But fsck hangs my system at 27.1% on one of my 
partitions. Can you please advise on what to do?

Nils Kassube wrote:
> 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
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071005/dade3b04/attachment.html>


More information about the ubuntu-users mailing list