LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-07-2013, 04:44 AM   #1
yzfr1
LQ Newbie
 
Registered: Apr 2012
Distribution: Debian Wheezy
Posts: 17

Rep: Reputation: Disabled
Mounting windows shares generally unstable in debian


Hi guys,

For a long time I've had significant problems mounting and using the shares from my windows server on my debian machines. I can mount them just fine, but get problems not using them for a while (a few hours?), or when coming back from suspending/hibernating. What happens is that the directory where I've mounted the share becomes completely unresponsive and unusable, running for example "ls /mnt/server" just hangs, and not even CTRL-C works to cancel the command. What I then do is to run "umount -l /mnt/server" which does manage to unmount it after a while. After this I either have to wait a significant number of time (may be anything from 30 minutes to an hour or two) or just reboot to be able to mount it again. If I try remounting straight away the mount command just hangs.

It's also a bit curious, when suspending/hibernating the problem only occurs if I let it sit for at least a minute or two, if I resume straight away then it still works. This seems related to the network connection as well, if I make a change in the connection (by disconnecting, connecting to a VPN, change from wlan to ethernet) then this also happens, but also if the change is for more than a few seconds (ie, disconnecting from wlan and then reconnecting immediately doesn't have an effect, but disconnecting, waiting a minute or two and then reconnecting does cause the problem).

The last part of the problem, which isn't as important or annoying as the previously mentioned, is that when rebooting/shutting down the computer will hang for 10-15 minutes attempting to unmount the shares (in the script /etc/init.d/umountnfs.sh after the debug line "Unmounting remote and non-toplevel virtual filesystems"). This problem I believe is caused by the fact that the cifs daemon is killed before the umount procedure, causing it to wait for some kind of timeout before continuing. This I can solve by simply writing a script to umount the shares before shutting down, but the other problem is the one I'm not sure how to fix.

This is my fstab entry for one of my shares:

Code:
//SRV001/D	/mnt/srv001/d	cifs	auto,rw,_netdev,users,nobrl,uid=user,gid=user,iocharset=utf8,file_mode=0644,dir_mode=0755,credentials=/home/user/.srvcreds	0 0
I'm running Debian Wheezy and have this problem on all my debian machines. It does however work perfectly in Ubuntu, when mounting the exact same way (the line above), with cifs-utils and smbclient installed.

Now my question is, Is there a better way to mount windows shares in debian? I can't imagine these problems being acceptable in corporate environments for instance, so is there a more 'stable' way to mount windows shares? Anyone with ideas as to how I might solve this?

Cheers
 
Old 01-07-2013, 06:57 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,723

Rep: Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261Reputation: 1261
I'm nor really sure, but it looks like some auto* feature, which conflicts with the normal mount (probably gnome?)
 
Old 01-07-2013, 07:10 AM   #3
yzfr1
LQ Newbie
 
Registered: Apr 2012
Distribution: Debian Wheezy
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I'm nor really sure, but it looks like some auto* feature, which conflicts with the normal mount (probably gnome?)
Thanks for your reply mate. I'm not sure what you mean by "auto* feature", but regarding gnome, I experience the same problem even without having X installed, which effectively rules that out.
 
  


Reply

Tags
debian, mount, share, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting windows shares dipuasks Linux - General 3 07-24-2008 01:14 AM
Problem Mounting Windows Shares in Debian 4.0 kaplan71 Debian 3 12-31-2007 08:09 PM
Mounting Windows shares ctkroeker Linux - Networking 2 06-16-2006 04:02 PM
Mounting Windows Shares ilumin8d Linux - Networking 4 07-15-2003 02:36 AM
Mounting Windows Shares Thermos Linux - Networking 3 07-09-2003 01:34 PM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration