-   Ubuntu (
-   -   samba share folder on boot (

dyool 09-18-2006 02:17 PM

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

PTrenholme 09-18-2006 03: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 03:22 PM

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 03:56 AM.