strange e2fsck behaviour in debian 0.91
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.
# /etc/rc.d/rc.S - runs automatically when the system boots
# Written by Ian A. Murdock <email@example.com> (with sections
# taken from the bootutils 0.1 package)
# Check the integrity of all filesystems (if not a fastboot)
if [ ! -e /etc/fastboot ]; then
echo "Checking filesystems..."
/sbin/fsck -A -a
# If there was a failure, drop into single-user mode.
if [ $? -gt 1 ] ; then
echo "fsck failed. Please reboot."
echo "*** Filesystems are not being checked! ***"
# Remount the root filesystem in read-write mode
/bin/mount -n -o remount /dev/hda6 /
# Remove /etc/mtab*, /etc/nologin and /etc/utmp
/bin/rm -f /etc/mtab* /etc/nologin /etc/utmp
When I force a new fsck by syncing and pushing the reset switch, e2fsck
finds the same errors again, which it claimed to have corrected in the
firstname.lastname@example.org lyra, orion or fly instead of sirius
will also work (most of the time at least)