LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 09-18-2006, 01:17 PM   #1
dyool
Member
 
Registered: Aug 2006
Posts: 60

Rep: Reputation: 15
samba share folder on boot


I want mount a samba share folder on boot. I add this line to fstab
Code:
//helder-desktop/helder /media/samba smbfs noauto,users,username=helder,passwd=123123 0 0
But this line don't mount the folder on boot. I must do:
Code:
#mount /media/samba
How knows wat is wrong in fstab line? Maybe the problem is in the user. In user I use the login name...

Last edited by dyool; 09-18-2006 at 01:56 PM.
 
Old 09-18-2006, 02:03 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Hum. That looks correct to me, and since the mount works later, I suspect that it's just that you haven't started the smb service before processing the fstab.

If you don't want to rename the smb link in /etc/rc.d/rc5.d/ so it's started before autofs, try adding mount -a -t smb to /etc/rc.d/rc.local/, and ignoring the message(s) that the mount failed during the boot.

N.B.: All file names, etc, here are from my knowledge of Fedora, and may differ on your distribution. Although controlling the order in which services are started, an the order in which they start, by links from /etc/rc.d/rc[12345].d/ (for each run level) is, I believe, fairly common.
 
Old 09-18-2006, 02:22 PM   #3
dyool
Member
 
Registered: Aug 2006
Posts: 60

Original Poster
Rep: Reputation: 15
Works!!!
In ubuntu don't exist /etc/rc.d/rc.local/ but exist /etc/rc.local
I add mount -a -t smb to /etc/rc.local and works. The share folder is mounted on boot.

Thanks, PTrenholme
 
  


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
SAMBA Public Share Folder Echo Kilo Linux - Software 3 06-17-2008 01:32 AM
how to share a folder on fat32 using samba? lnthai2002 Linux - Software 4 02-08-2006 04:35 PM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
samba mount to windows share folder lewkh Red Hat 1 03-01-2005 03:31 PM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-24-2003 11:52 PM


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