LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2014, 07:48 PM   #1
ablundon
LQ Newbie
 
Registered: Dec 2014
Location: Paradise, NL, Canada
Distribution: Ubuntu
Posts: 11

Rep: Reputation: Disabled
Ubuntu Samba File Server - Mapped Windows Drives Loose Connection


Hi all, my first post here as I am a relative newbie to linux.

I have an Ubuntu server set up at my house for sharing files. I've set up Samba and I am successfully able to map the shared locations using my Windows machines (i.e. map network drive). I have 5 or 6 drives created using this method.

However, about once or twice a day, my windows machine looses the maps. No matter what I do on the Windows machine (even reboot) I can get the drive to come back. It appears it can't find the drive anymore. I can still ping the server and can putty into it no trouble so I know the network is fine. The only way I can get it to come back is to reboot the linux server. Even restarting samba doesn't work. I need to do a full reboot. Once I reboot, Windows immediately gains access to the shared locations on the Ubuntu server.

Any thoughts?
 
Old 12-23-2014, 02:29 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
Do you check Samba log on server when Windows machine can't access it?
 
Old 12-28-2014, 08:09 PM   #3
ablundon
LQ Newbie
 
Registered: Dec 2014
Location: Paradise, NL, Canada
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: Disabled
The only error messages in my log are:

[2014/12/28 22:28:12.511842, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/12/28 22:28:12.512094, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

I assume this doesn't have anything to do with the loss of connection to my folder shares?
 
Old 12-29-2014, 02:24 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
The Samab log files is under /var/log/samba/. You should go to the directory to check log.
 
Old 12-29-2014, 03:11 PM   #5
ablundon
LQ Newbie
 
Registered: Dec 2014
Location: Paradise, NL, Canada
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks... I found the log files as previously posted. I also found a log file for the Windows computer but the last entry is from Dec 16 which is well before the last incident.
 
Old 12-30-2014, 02:54 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,868

Rep: Reputation: 162Reputation: 162
You can use smbstatus tool to increase Samba debug level.
Following link is detail information about the tool.
http://manpages.ubuntu.com/manpages/...bstatus.1.html
 
  


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
Ubuntu 8.04 Desktop: Mapped drives disconnect on restart / duplicate mappings rookiepaul Linux - Networking 1 10-17-2008 11:30 AM
Samba, Vista, Mapped Drives, and change password prompt mrog Linux - Networking 2 09-30-2008 08:01 AM
Windows XP x64 workstation won't reconnect drives mapped to smb share wally42 Linux - Networking 2 09-15-2008 03:49 PM
Samba - Mapped network drives loose connection dtournas Linux - Networking 1 10-04-2004 01:07 PM

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

All times are GMT -5. The time now is 01:14 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