[prev in list] [next in list] [prev in thread] [next in thread] 

List:       caldera-users
Subject:    smbfs drives hang rebooting in COL 2.2
From:       JHammer609 () aol ! com
Date:       1999-06-30 22:30:54
[Download RAW message or body]

>>>I have no trouble mounting, over a network, windows directories with 
smbmount. I also have no trouble umounting these same directories, either 
from the command line or with commands in a script, run by root.
However, when I shutdown my computer with a network drive mounted, either 
with halt or reboot, the shutdown process always hangs when it attempts to 
umount the file system. (The halt script uses umount -a).
<<<
That was my problem. As usual, two things happened. Just writing the letter 
and posting it made me think more clearly.
Second, the answer was right in front of my nose. The last screen message 
before the umounting began was stopping network devices.
The light finally dawned. If the network is down, then you can't access the 
net drives. Dud. Reading the network script shows that the script disconnects 
NFS drives before it turns off the network but there was no provision for 
smbfs drives. This MUST be a bug.
So, this is my contribution to the inevitable victory of the free software 
movement over the evil empire:
Put the following in the /etc/rc.d/init.d/network script before the network 
devices are shut down:
  echo "Shutting down network devices..."
# My entry to umount smbfs drives
  umount `mount | grep smbfs | xargs -n1 -0 |  cut -d' ' -f3` > /dev/null 2>&1

This seems to work.
Joel
-
To unsubscribe: send "unsubscribe users" to majordomo@lists.calderasystems.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic