YTC#1 <
b...@ytc1-spambin.co.uk> wrote:
> On 26/07/2018 12:49, Paul wrote:
> > On Thursday, 26 July 2018 10:59:09 UTC+1, YTC#1 wrote:
> >> On 23/07/2018 08:50, Paul wrote:
> >>>
> >>> I have a SMB share I would like to mount at boot time so I dont have to do this manually.
> >
> > Thanks Bruce, I see from your vfstab entry you have "mount at boot" set to "no" so this maybe why you needed manually intervene?
> >
> When it was yes, the system errored at boot :-(
> > Did you ever use the smbadm add-key method for the username and password authentication?
I would never think about mount a smb fs on a sun.
But under linux I do it. The problem at boot ist that on the time when the
system mounts the network (interface, nameserver, samba-nameserver) is not
ready. This affects also nfs. The solution is the option _netdev in the
fstab.
13.200.219.93:/mehdata/home /home nfs defaults,nfsvers=3,_netdev 0 0
vhrz534.services.un.de/UB_T$ /mnt/samba/tmp cifs \
credentials=/etc/.smbcredentials,uid=XYZ,gid=users,file_mode=0775,dir_mode=0775,iocharset=utf8,noserverino,_netdev 0 0
Don't know if it has effect in solaris (on linux it is also not in the man
pages).
I think its better to use the automounter for external devices. If someone
wants the directory the network is ready for the task. See
https://docs.oracle.com/cd/E53394_01/html/E54797/automountsharetask.html
Juergen