From owner-freebsd-questions@FreeBSD.ORG Wed May 7 17:51:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12DC2106566B for ; Wed, 7 May 2008 17:51:13 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.77]) by mx1.freebsd.org (Postfix) with ESMTP id 51F048FC15 for ; Wed, 7 May 2008 17:51:11 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from [192.168.0.1] (athedsl-87950.home.otenet.gr [87.203.96.220]) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m47Hp8gS009716; Wed, 7 May 2008 20:51:08 +0300 Message-ID: <4821EC14.2040802@otenet.gr> Date: Wed, 07 May 2008 20:51:16 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Stephen Allen References: <4821DEA3.3020905@rowyerboat.com> In-Reply-To: <4821DEA3.3020905@rowyerboat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: SMB share not mounting at startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 17:51:13 -0000 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.