fscking drive every boot up

George Toft plug-discuss@lists.plug.phoenix.az.us
Wed, 09 Oct 2002 07:42:21 -0400


If you recall, I posted a question a few months ago about my hard drive
that always fsck's on startup.  I've discovered some interesting things,
and need to fix or bandaid the cause.

Symptoms:
1.  Each startup causes my root partition (/dev/hda8) to fsck.

2.  I put some debug statements in /etc/init.s/halt to see what is
happening.  halt executes the following command to unmount all
filesystems:
	umount -avt noproc,nonfs,nosmbfs || {
	    rc_status
	    UMOUNT_FAILED=true
	}
yet, my mount statement:
	echo "DEBUG: What is currently mounted:"
	mount
shows /proc and /dev/hda8 are still mounted.

3.  Adding another umount (with force option) has no effect:
	echo "Issuing umount on /dev/hda8 . . ."
	umount -fv /dev/hda8        

4.  This does not happen in vmware.

5.  Presumably, this does not happen on any other box in the whole world
(or at least too many of them) otherwise, this problem would have been
fixed.

6.  I do no know if any other distro has this problem as this box has
only run SuSE.

7.  This symptom is not specific to this installation as I have
installed SuSE several times using different hard drives on this
motherboard.  It is always the / partition that is affected.  I have had
/ located on /dev/hdc6 (on two different drives), /dev/hda7, and
/dev/hda8.

8.  The fsck's never come up with problems.

9.  /etc/fstab is as shown:
	/dev/hda8       /       ext2    defaults 1 1
	/dev/hda5       /boot   ext2    defaults 1 2
	devpts  /dev/pts        devpts  defaults 0 0
	/dev/cdrecorder /media/cdrecorder       auto    ro,noauto,user,exec 0 0
	/dev/cdrom      /media/cdrom    auto    ro,noauto,user,exec 0 0
	/dev/fd0        /media/floppy   auto    noauto,user,sync 0 0
	usbdevfs        /proc/bus/usb   usbdevfs        defaults,noauto 0 0
	proc    /proc   proc    defaults 0 0
	/dev/hda7       /var    ext3    defaults 1 1
	/dev/hdc1       /windows/C      vfat    user,noauto,defaults 0 0
	/dev/hdc5       /windows/D      vfat    user,noauto,defaults 0 0
	/dev/hda6       swap    swap    pri=42 0 0
	/dev/hdb2       swap    swap    pri=42 0 0
	/dev/hdc4       swap    swap    pri=42 0 0

Can somebody suggest a way to make sure /dev/hda8 is unmounted?  I
prefer to limit my reboots until this is fixed.  (I prefer to limit my
reboots afterwards as well!)

Thank you.

George
-- 
        __     __   ___   __   __   __  ___    ___
       |  |   |  | |   \ |  | |  | |  | \  \  /  /
  -o)  |  |   |  | |    \|  | |  | |  |  \  \/  /   (o-
  /\\  |  |__ |  | |  |\    | |  |_|  |  /  /\  \   //\
 _\_v  |_____||__| |__| \___| \_______| /__/  \__\  v_/_

Don't Fear The Penguins