Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 09-18-2006, 02:17 PM   #1
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
//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:
#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 02:56 PM.
Old 09-18-2006, 03:03 PM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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, 03:22 PM   #3
Registered: Aug 2006
Posts: 60

Original Poster
Rep: Reputation: 15
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


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 02:32 AM
how to share a folder on fat32 using samba? lnthai2002 Linux - Software 4 02-08-2006 05:35 PM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 04:29 AM
samba mount to windows share folder lewkh Red Hat 1 03-01-2005 04:31 PM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-25-2003 12:52 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:34 AM.

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