Comment 64 for bug 211631

Revision history for this message
James (james-ellis-gmail) wrote : Re: CIFS/SMBFS shares not unmounted before network is shut down

So I've read through this entire thread and seen a lot of solutions. I have a fully updated intrepid and this line appears at shutdown (take out the splash line in your kernel command in grub to see it) :
CIFS VFS: No response for ......

basically the same as the original report.
CIFS VFS: server not responding
CIFS VFS: no response for cmd 50 mid <this number changes>

With the result being that the system doesn't shutdown for a longggg time.

I don't want to mess around with init scripts, so I propose two solutions (and note I'm not a programmer):
1. If no network is present when the system is shutting down, try forcing the umount ?
$man umount
-f Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1.116 or later.)
2. Bring the mount down before the network is bought down on shutdown (which seems sensible given remote file systems require a network)

BTW, my CIFS mount is created in userspace in Kubuntu on login, if that alters anything.
$ cat .kde/Autostart/mounts.sh
kdesudo -d --comment "Attach media share" -c "mount -t cifs //remote/media /path/to/mount/point -o username=xxx,rw,password=zzz"