Re: strange e2fsck behaviour in debian 0.91
andreas%lyra@lyra.mgen.uni-heidelberg.de writes:
> I just managed to crash my debian computer for the first time. After
> that I had a chance to test the filesystem checking. I use a pl15 kernel,
> which correctly mounts the root filesystem readonly. After that e2fsck
> reports a number of unused clusters and wrong count of free blocks. It
> claims to correct these errors. After that the a changed filesystem is
> reported and the machine goes on to switch into multi user mode.
> The test in rc.S for errors during fsck seems to be skipped.
>
> # If there was a failure, drop into single-user mode.
> if [ $? -gt 1 ] ; then
> echo "fsck failed. Please reboot."
> /bin/sh
> fi
Would changing the above to:
if [ $? -ne 0 ] ; then
echo "fsck failed. Please reboot."
/bin/sh
fi
be correct?
--
Sunando Sen
Dept. of Economics Email: sens@acf2.nyu.edu
New York University
Reply to: