[Bug 211631] Re: Network is brought down before network filesystems are unmounted (CIFS timeout at shutdown)

James james.ellis at gmail.com
Mon Nov 9 13:01:00 GMT 2009


Ditto, gvfs is Gnome-centric and this is an underlying system issue.

The network:/ and smb: protocol in KDEs Dolphin works well enough but
for instance, Amarok doesn't allow music collections to be used via
smb:/ but does handle Samba mounts via mount.cifs.  fusesmb also doesn't
do much as it dies when Amarok tries to scan music on the fuse
mountpoint.

In KDE, I found a workaround is to create a shell script that unmounts the mount point that has been mounted with mount.cifs
e.g

-------
#!/bin/bash
umount.cifs /path/to/media
-------

* Make it executable by your user and put in it your home directory (or whereever you like)
* Choose System Settings > Advanced > AutoStart
* Choose Add Script and select the script. In "Run On" select "Shutdown".

When you log out of KDE now, the mount point will be unmounted. The
opposite can be done on log in by mounting on Startup -- using a shell
script calling mount.cifs with the required options instead.

It works for me and my laptop properly shuts down now. Doesn't fix the
underlying bug though.

Which brings up another question - would it be possible for
NetworkManager to bring up & down configured mount points as part of
it's configuration/settings ? That way, it unmounts just before bringing
the network down and mounts the filesystems after bring the network up ?
A simple checkbox would suffice e.g "Control Network Shares"

-- 
Network is brought down before network filesystems are unmounted (CIFS timeout at shutdown)
https://bugs.launchpad.net/bugs/211631
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list