[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: success!?!?!? mostly.



"T. Martin" wrote:
> 
> what should the last two columns of fstab be with ext3, ext2 is was 1 1.

`man fstab' says:

       The fifth field, (fs_freq), is used for these  filesystems
       by the dump(8) command to determine which filesystems need
       to be dumped.  If the fifth field is not present, a  value
       of zero is returned and dump will assume that the filesys­
       tem does not need to be dumped.

       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  paral­
       lelism  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.

So you should have `1 1' for / and `1 2' for the rest.  But I
doubt if that will cause the problem.

Could you please restate the problem you're seeing?  You say
"on hardboot it still fscks the drives".  Does this mean that
it simply runs fsck, or does it do the great big ten minute
crunch-through-everything?  What is "hardboot"?  Is it crash
recovery?

The expected behaviour is:

- fsck will be run against every filesystem at boot time.
- If the fs was shut down cleanly, fsck will say "clean" and quit.
- If the fs was not shut down cleanly, fsck will replay the journal
  and will then quit.  This takes a few seconds per fs.

How does the behaviour of your machine differ from this?

> heres the part of rc.sysinit that concerns fsck...
> 
> if [ -f /fsckoptions ]; then
>         fsckoptions=`cat /fsckoptions`
>     else
>         fsckoptions=
> fi
> 
> if [ -f /forcefsck ]; then
>         fsckoptions="-f $fsckoptions"
> fi
> _RUN_QUOTACHECK=0
> if [ ! -f /fastboot ]; then
>         STRING="Checking root filesystem"
>         echo $STRING

Add
	echo "running fsck -C -T -a $fsckoptions /"
here.

>         initlog -c "fsck -C -T -a $fsckoptions /"
>         rc=$?
> 
>         if [ "$rc" = "0" ]; then
>                 success "$STRING"
>                 echo
>         elif [ "$rc" = "1" ]; then
>                 passed "$STRING"
>                 echo
>         fi
> 
>         # A return of 2 or higher means there were serious problems.
>         if [ $rc -gt 1 ]; then
>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]