CIFS mounts hang shutdown

Bug #348557 reported by DominicL
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Lucid by mclaud2000

Bug Description

Binary package hint: sysvinit

This is a documented and ongoing problem. From a fresh install of 8.10 with smbfs added, any CIFS mounts will hang for a time during shutdown.

sysvinit version: 2.86.ds1-59ubuntu13

This is documented in a bug here:

https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/42121

And the work-around is documented in the community Wiki here:

https://help.ubuntu.com/community/MountWindowsSharesPermanently

I am opening this as a new bug as per Scott's comment on bug 42121:

" you might be seeing similar symptoms, it is not the same as this bug - and you should file a new one. -- Scott James Remnant <email address hidden>"

Thank you,
- Dominic L.

Revision history for this message
Tom Chiverton (bugs-launchpad-net-falkensweb) wrote :

Still busted in 10.4 LTS beta 2

Revision history for this message
Nick Demou (ndemou) wrote :

this seems like a duplicate of bug 211631

Revision history for this message
Nick Demou (ndemou) wrote :

BTW I use this work around for my gnome based PC with only one user: I've added this line to /etc/gdm/PostSession/Default
   umount `mount | grep 192.168. | sed -e "s/ on \/.*$//"`

This script gets executed when I log out of gnome and it un-mounts all cifs/samba shares on servers with IP starting with 192.168 (which in my case is everything I mount)

____________
Note that
   mount | grep 192.168.
gives me a list of shares I have mounted at the time I log out of gnome

Revision history for this message
Nick Demou (ndemou) wrote :

forgot to note that the above work around needs to
a) allow non-root users to run umount.cifs (un-mount samba shares). You can do that with the command:
   sudo chmod +s /sbin/umount.cifs
b) Add the option users to all the samba shares in /etc/fstab. e.g.:
   //192.168.0.2/foo /mnt/foo cifs users,rw,iocharset=utf8,...,...

Changed in sysvinit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.