LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2010, 09:32 PM   #1
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Rep: Reputation: 15
How to solve the smb link lost issue.


in My Ubuntu host,I often use samba service to open the share fold of another computer which is WinXP .But everytime When I logout or restart the Ubuntu ,The link will lost ,I have to reconnect it again, I want to know if there is some easy way to connect it always.
Thanks for any help.
 
Old 03-11-2010, 10:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,094

Rep: Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381Reputation: 4381
Quote:
Originally Posted by ayongying View Post
in My Ubuntu host,I often use samba service to open the share fold of another computer which is WinXP .But everytime When I logout or restart the Ubuntu ,The link will lost ,I have to reconnect it again, I want to know if there is some easy way to connect it always.
Thanks for any help.
Well, if you reboot or log out, it will drop ANY services you're running, since the session is terminating.

If you want to log out and keep it running, then you'll have to run the Samba connect script at system boot time, so it runs as a different session, or start it with a nohup and background it with an "&", but I'm not sure if that will live through a logout either. Starting it at boot time is pretty much your only option, but if you reboot, that will obviously close it too.
 
Old 03-11-2010, 08:39 PM   #3
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks very much. with your help ,I try as following and success.

I add the following entry in /etc/fstab as
//ip/folder /mounted_dir smbfs username=abc,password=***

It is able to map the network samba drive after logout
 
  


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
Missing smb link in MC , running Ubuntu 9.04 Clived Ubuntu 2 10-12-2009 10:54 AM
Symbolic Link to solve my out-of-space problem? LSOsheriff Linux - Newbie 4 08-30-2006 10:13 AM
lost default smb.conf Celettu Linux - Networking 3 07-20-2004 07:24 AM
Debian file name issue...(easy to solve?) goldeneyexs Linux - Software 0 06-11-2004 06:58 PM
how to create smb link ? mikeshn Linux - General 9 03-25-2004 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration