From owner-freebsd-questions Thu Dec 19 9: 9:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8716F37B401 for ; Thu, 19 Dec 2002 09:09:29 -0800 (PST) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6BCA43ED8 for ; Thu, 19 Dec 2002 09:09:28 -0800 (PST) (envelope-from dschrock@speakeasy.net) Received: (qmail 17255 invoked from network); 19 Dec 2002 17:09:32 -0000 Received: from unknown (HELO speakeasy.net) (dschrock@[64.81.225.7]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 19 Dec 2002 17:09:32 -0000 Message-ID: <3E01FD4A.8000401@speakeasy.net> Date: Thu, 19 Dec 2002 11:09:30 -0600 From: Daniel Schrock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Lofstedt Cc: freebsd-questions@freebsd.org Subject: Re: Problem with my startup script? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Adam Lofstedt wrote: > Hello wise ones, > > I am trying to mount a windows share at boot with mount_smbfs. Since I > have to use the noauto option in fstab (filesystems in fstab are mounted > before the network is initialized), i have not used smbfs, but nfs filesystems mount just fine from /etc/fstab at boot... I would think that as long as the kernel can identify smbfs, you shouldn't have an issue... but like i said, i haven't tried it. I have created a startup script > (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d: > > case "$1" in > start) > /sbin/mount /myshare > ;; > stop) > #Maybe do something here... > ;; > *) > ;; > esac > > This exact same script worked just fine on another machine. When I > moved it to a different machine I get this message when my system boots > up: > > Local Package Initialization : (skipping smbfsstartup.sh, not > executable). > chmod 700 /usr/local/etc/rc.d/smbfsstartup.sh problem solved... or use 755 if others can start/stop it > I have modified my nsmb.conf files appropriately in both /etc and > /usr/local/etc. Using "mount" at the command prompt works just fine. I > am not sure why my startup script is not working on this machine, the > syntax looks fine to me. > > As a clue, when I mount from the command line, I get the following > message: > > netsmb_dev: loaded > > Is this some kernel module that isn't getting loaded at boot time, and > causing the script to fail? Any thoughts? > > Thanks, > Adam Lofstedt > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message .daniel.schrock To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message