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

RH problem



I've had this problem for a while and tried to fix it to no avail.

My system is RH 5 upgraded heavily running the initscripts from 6.1
and the latest dev. kernel (2.3.35).

When I get to shutdown I get Unmounting file systems followed by
device /usr is busy unmount failed (or similar).
Then the shutdown stops with my /usr partition still mounted. Not good.
I think this may be a difficulty with a new /proc layout (possibly). I
narrowed the problem area down to:

# Unmount file systems, killing processes if we have to.
sig=
retry=3
remaining=`awk '!/(^#|proc|^none|^/dev/root| / )/ {print $2}' /proc/mounts`
while [ -n $remaining -a $retry -gt 0 ]
do
runcmd Unmounting file systems umount -a -f
sleep 2
remaining=`awk '!/(^#|proc|^none|^/dev/root| / )/ {print $2}'
/proc/mounts`
[ -z $remaining ] break
/sbin/fuser -k -m $sig $remaining >/dev/null
sleep 5
retry=$(($retry-1))
sig=-9
done

I'm not really a shell guru so I don't know exactly what's the problem (awk
scares me).

Any ideas?

Here's my /proc/mounts if that helps.

/dev/root / ext2 rw 0 0
/proc /proc proc rw 0 0
/dev/hda7 /usr ext2 rw 0 0
/dev/hda2 /mnt/win vfat rw 0 0
/dev/hda6 /home ext2 rw 0 0

Start your own FREE mailing list at

© 2000 Microsoft Corporation. All Rights Reserved