LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   samba share folder on boot (http://www.linuxquestions.org/questions/ubuntu-63/samba-share-folder-on-boot-484702/)

dyool 09-18-2006 01:17 PM

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...

PTrenholme 09-18-2006 02:03 PM

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.

dyool 09-18-2006 02:22 PM

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


All times are GMT -5. The time now is 07:26 AM.