Mounting CIFS share hangs when server is offline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hello, I mounted an OS X Samba share on Linux Mint 7 using smbfs.
I added to the fstab-
//server/share /media/share cifs credentials=
This works, and is the preferred method in Ubuntu (as GNOME doesn't mount shares as a filesystem for other programs to access and it doesn't automount). However, if the server goes offline for any reason (restart, shutdown, router unplugged, etc.), programs in Mint gradually stall (stop responding). I had a WINE program stall, then Firefox, then Nautilus. I tried to reproduce it by shutting down the server again, and only nautilus stalled. They come back to life when the server boots back up. There may be an eventual timeout, but I didn't reach it. CIFS does not have a timeout option listed in the manual.
I realize it's expected that a fstab-listed filesystem will respond all the time, but network shares don't. I realize this won't be a Mint-only issue, but I wouldn't know who to submit it to (gnome nautilus, smbfs, CIFS-VFS, or all of them). I think this behaviour is too fragile. Please forward this bug wherever it's supposed to go. I did find this old mailinglist email, but it does not mention other programs stalling-
http://
Thanks for the help!
EDIT: note this hangs even if run from a normal mount command, not just from fstab.
tags: | removed: cifs freeze fstab nautilus share smbfs stall |
Changed in cifs-utils (Ubuntu): | |
status: | Incomplete → Confirmed |
Thank you for reporting a bug in Linux Mint. Unfortunately I do not have the necessary hardware to reproduce your problem. If anyone else can confirm this bug, please say so. Please check out the Linux Mint Forums, where there are many more people available to help out with diagnosing any problems you have. Please repost this in the forums, and put a link to it here, so I can track any further development. It is also exceptionally useful if you include the output of "inxi -F" when reporting hardware problems. You might also like to check out this article: http:// www.chiark. greenend. org.uk/ ~sgtatham/ bugs.html This is a standard response, so it may not be entirely appropriate.
In your particular case, can you first make sure it is actually an fstab potential issue by removing the fstab line and using nautilus' standard "connect to server" method to see if that also causes the hangs. If that is the case then it's either a problem with cifs directly, or a problem with your networking setup, so please check out the forums for more help. Otherwise, if it's only caused by fstab then I can't really say I'm surprised, the first line of fstab's man page says "fstab - static information about the filesystems" - static being the key word here, it would be better to create a script that connects to your share, and then make the script run on startup.