Date: Wed, 07 May 2008 20:51:16 +0300 From: Manolis Kiagias <sonicy@otenet.gr> To: Stephen Allen <sdafreebsduk@rowyerboat.com> Cc: freebsd-questions@freebsd.org Subject: Re: SMB share not mounting at startup Message-ID: <4821EC14.2040802@otenet.gr> In-Reply-To: <4821DEA3.3020905@rowyerboat.com> References: <4821DEA3.3020905@rowyerboat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Stephen Allen wrote: > I am trying to mount an SMB share at startup. I have configured (as > root) .nsmbrc so I don't have to type a password. When I run "mount > -a", it mounts beautifully. > > However, when restarting the server, it will not mount automatically. > According to rc.conf(5), smbfs is part of 'netfs_types' so rc should > wait until after the network is started before trying to mount it (so > shouldn't fail). I have an entry in /etc/fstab as follows: > > //backup@snap-cms/unix_backups /mnt/snapserver smbfs rw 0 0 > > Does anyone have any ideas? I'm wondering if the .nsmbrc file can't > be read because rc isn't running as root - and if so, where can I put > .nsmbrc? > > Many thanks, > Steve :) > Have a look at /etc/nsmb.conf This is where smbfs looks after trying ~/.nsmbrc Don't know if this is really your problem, but it is worth a try.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4821EC14.2040802>