[Samba] smbmount curiosity - cant mount share in rc.local

Hamish captainmish at gmx.net
Wed Sep 29 10:17:33 GMT 2004


No idea if it would work, but have you tried putting it in /etc/fstab?

Tomasz Chmielewski wrote:

> Hello,
>
> I would like to mount a certain share when the server is booted.
> So I added the following line at the end of rc.local:
>
> /bin/mount -t smbfs -o guest //backup/archiwizacja$ /mnt/archiwizacja
>
> Interestingly, this doesn't mount anything, nothing is added to the 
> logs either.
>
> When I enter this line manually, after server is booted, it is mounted.
>
> # mount -t smbfs -o guest //backup/archiwizacja$ /mnt/archiwizacja
> # mount
> (...)
> //backup/archiwizacja$ on /mnt/archiwizacja type smbfs (0)
>
>
> It makes no difference if I change the netbios name (backup) to IP 
> address in this rc.local.
>
> Of course rc.local is executed, as other programs from it are ran.
>
>
> Any ideas?
>
>
> Tomek



More information about the samba mailing list