Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

smbfs mount at boot (Solaris 11.3)

234 views
Skip to first unread message

Paul

unread,
Jul 23, 2018, 3:51:01 AM7/23/18
to
Hi all,

I have a SMB share I would like to mount at boot time so I dont have to do this manually.

If I store the username and password with the following command:

$ smbadm add-key -u terry@solarsystem
Password for SOLARSYSTEM/terry:

Is it then just a case of adding the mount command to /etc/vfstab?

Or are there other steps that need to be taken to achieve this?




The command I use to manually mount the share is:

mount -F smbfs -o user=<myuser>,domain=<mydomain>,dirperms=777,fileperms=777 //gfile.<mydomain>.com/DATA1 /data


Regards,
Paul

YTC#1

unread,
Jul 26, 2018, 5:59:09 AM7/26/18
to
Not much help, but this takes me back to when I last played with SMB

I still have some entries in my vfstab, but IIRC I still had to call
mount <dir> to get them up.

---8<
//ytc_nas/Movies - /export/Movies smbfs - no -
#//ytc_nas/Movies - /export/home/bruce/Movies smbfs -
no user=admin
---8<

IIRC, it was something to do with root ownership, or not.....

--
Bruce Porter
"The internet is a huge and diverse community but mainly friendly"
http://ytc1.blogspot.co.uk/
There *is* an alternative! http://www.openoffice.org/

Paul

unread,
Jul 26, 2018, 7:49:25 AM7/26/18
to
Thanks Bruce, I see from your vfstab entry you have "mount at boot" set to "no" so this maybe why you needed manually intervene?

Did you ever use the smbadm add-key method for the username and password authentication?

YTC#1

unread,
Jul 26, 2018, 8:37:46 AM7/26/18
to
When it was yes, the system errored at boot :-(

> Did you ever use the smbadm add-key method for the username and password authentication?
>

That doesn't ring a bell, sorry.
Eventually I gave up and reverted to NFS again. (I ditched the NAS)

Juergen Schroeder

unread,
Jul 27, 2018, 7:32:06 AM7/27/18
to
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
0 new messages