LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-18-2013, 06:39 PM   #1
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 128

Rep: Reputation: 4
Windows Server 2003 shares sometimes become unavailable


I have a Windows Server 2003 machine which i store most of my files on. Occasionally it becomes unavailable and the shares shows up as zero byte files created 1970-01-01 01:00. If i try to mount a share (mount -t cifs) I get a permission denied error. All of a sudden it works again or if I don't have the patience to wait it out and do a reboot or log out/in again it works right away. 95% of the time everything works flawlessly, but every once in a while this happens. I have checked the logs on the server without finding anything explaining this. Any ideas?
Btw, how do you generally mount Windows shares out there? I use a script that runs with root permissions at every login (/etc/mdm/PostLogin/default).
 
Old 05-18-2013, 11:37 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,992

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
just use mount -t cifs with appropriate arguments to mount em.

typically what you are describing is one of two things.

1. LAN connection issues. if the LAN has a hickup then the connection can be dropped. If that is the case depending on how the share is mounted this can cause Linux to get confused.

2. win2k3 is just old and could be dropping the connection. heck it drops connections across a native network let along a mixed environment.

my money is on #2.

i personally use autofs still to mount my cifs points. here is my win7 mounted to my CentOS 6.x box:

Code:
[user@centos ~]$ cat /etc/auto.master
/mnt/win7	/etc/auto.win7	--timeout=600	--ghost

[user@centos ~]$ cat /etc/auto.win7 
win7	-fstype=cifs,rw,noperm,username=XXXXXXXX,password=XXXXXXXX	://win7/g
This works great for me. when ever the user/system wants access to the mount point autofs mounts the share and it is seamless as far as the user(s) know.
 
Old 05-20-2013, 03:06 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,358

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Maybe a dhcp lease issue?
 
  


Reply


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
[SOLVED] Unable to mount Windows 2003 shares from CentOS Leupi73 Linux - Software 1 01-17-2013 02:58 AM
[SOLVED] Windows Server 2003 clients periodically unable to read CIFS shares AdamDaughterson Linux - Server 3 08-10-2009 09:53 AM
Mount Windows 2003 Shares MarquisEXB Linux - Newbie 7 01-12-2006 02:17 PM
can't mount windows 2003 shares - permission denied kanuuker Linux - Networking 2 08-15-2005 04:23 PM
Cant Access Windows 2003 Server Shares Thru Samba tobias_r33per Linux - Software 4 05-22-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration