From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 02:53:29 2007 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 DCFE816A417 for ; Wed, 8 Aug 2007 02:53:28 +0000 (UTC) (envelope-from novembre@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 8CB6413C45D for ; Wed, 8 Aug 2007 02:53:28 +0000 (UTC) (envelope-from novembre@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so61031pye for ; Tue, 07 Aug 2007 19:53:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=EdpvyneZhWir+QovS6U0CBREQR0wfkiKfaFVGpV5gqGGuTrndsxRIhq3UlY1nugjGTMuP36gLtQrWH69hRQqe1HpKadcbg3AQBiZ8N3kqWMOGiMWFXL6/VKQp87vSdiyJb/kMO081t+C6XA3rbvNAS4VWyyOcYFG8MRuygAWpxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=BpgDmMYj33vWilVpGo6HGL8EZvuha6WTS9lBY/zA89vop+9qY5TJAlmSlyRYkC5IOssTfL9vU6nPU9neSO8HQWnmOv3ypGH0O4HY8e3542/MRELkVIlhJewXetpS/bcqQTuDCUdYmUihOHvAe3A10XXPqjMql1kVyzIL1+HO2oo= Received: by 10.65.59.11 with SMTP id m11mr442680qbk.1186541606164; Tue, 07 Aug 2007 19:53:26 -0700 (PDT) Received: by 10.64.210.16 with HTTP; Tue, 7 Aug 2007 19:53:26 -0700 (PDT) Message-ID: <3b47caa90708071953t515be42etef87a9c72c00dd54@mail.gmail.com> Date: Tue, 7 Aug 2007 21:53:26 -0500 From: Novembre To: "Philip M. Gollucci" In-Reply-To: <46B7F338.30304@riderway.com> MIME-Version: 1.0 References: <3b47caa90708061959v42c02e3fy8e97137cd2a30504@mail.gmail.com> <46B7F338.30304@riderway.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-questions@freebsd.org" Subject: Re: NTFS-3G not mounting the partition during boot 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, 08 Aug 2007 02:53:29 -0000 On 8/6/07, Philip M. Gollucci wrote: > > Novembre wrote: > > rcvar=`set_rcvar` > That should be > rcvar=${name}_enable > > Because of this, your script did not run because the rc system didn't > detect it correctly. > > Try setting > rc_debug="YES" > and/or > rc_info="YES" > in /etc/rc.conf > > to see more of whats happening. > > > command="ntfs-3g /dev/ad0s1 /mnt/windows && ntfs-3g /dev/ad0s1 > > /mnt/windows -o locale=en_US.UTF-8" > Also $command is special, you should use another variable > $command_args (which is also special) for the arguments/options. > > Of course, you can circument these if you know what you are doing. > > When in doubt, look at other rc scripts like apache22's or others that > might seem like they would do a lot. > > Finally, in /etc/rc.subr is _very_ > > > -- > ------------------------------------------------------------------------ > Philip M. Gollucci (philip@riderway.com) 323.219.4708 > Senior System Admin - Riderway, Inc. http://riderway.com > 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF > > Work like you don't need the money, > love like you'll never get hurt, > and dance like nobody's watching. > Hi, I did not write this script myself. I was searching the net for a solution to this problem, and I found a thread on ntfs-3g forums where somebody had posted this script. Apparently, it had worked for him and some other people. I just copied and pasted the script. But since I wanted to know more about startup scripts, I looked at the manual page for rc.d, and a sample script there looked exacly liked this one. That's why I thought that the script that I have is going to work as well. I made the changes and am going to reboot the machine now. If they work, i'll post the results... Thanks a lot :)