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

Re: RH problem



All awk is doing is using its pattern matching capability to check on which
devices are mounted. Check if the directory structure has changed from V5 to
V6.1 and that fuser is located in /sbin.
Regards
John

----- Original Message -----
From: <will [at] south-of-heaven.demon.co.uk>
To: <sheflug [at] listbot.com>
Sent: Tuesday, January 04, 2000 2:56 AM
Subject: RH problem

> sheflug - http://www.sheflug.co.uk
>
> 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
>
> ______________________________________________________________________
> To unsubscribe, write to sheflug-unsubscribe [at] listbot.com
> ______________________________________________________________________
> Applying to college this year?
> Apply online at Embark.com and enter the Embark.com Tuition Sweepstakes!
You could win $80,000 for tuition to the college of your dreams! Enter daily
to increase your chances of winning: Sweepstakes ends 1/15/00. Click to
enter: http://www.listbot.com/links/embark
>

Start your own FREE mailing list at

&copy; 2000 Microsoft Corporation. All Rights Reserved