From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 03:31:04 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 3002016A419 for ; Wed, 8 Aug 2007 03:31:04 +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 D386813C428 for ; Wed, 8 Aug 2007 03:31:03 +0000 (UTC) (envelope-from novembre@gmail.com) Received: by py-out-1112.google.com with SMTP id a73so75151pye for ; Tue, 07 Aug 2007 20:31:03 -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=cVde8uCLC3B3leeIH0qyuy0rb7a0yCoNhe9eins+ibDJS8MygGoTrQIDJyM2g5aXibMzr2BpJSGWs5TuugOVh3CVIl8U5EvrWQKLnH0RucvA0TTZf7tatS69uXiOyL1ZVLQcd4G9+upWYO7PondrlSXg3OzeFZvYWN1RBZfzibI= 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=dranq0kAZnOZDN/QtcRomHotLchjFaQ6BrjMoFBnl4LL23krzrbRweeFLk2PF6rWfB/jD2Mj+sieVF7/R15bD7vP42ffSS21qkAgo/RyloNW6+NW7l9HVv4tily6SyjuDp2t1okW6C4/1hhss8xh3cHWznAFRBlVAFfrll3XJ04= Received: by 10.65.138.4 with SMTP id q4mr856846qbn.1186543860795; Tue, 07 Aug 2007 20:31:00 -0700 (PDT) Received: by 10.64.210.16 with HTTP; Tue, 7 Aug 2007 20:31:00 -0700 (PDT) Message-ID: <3b47caa90708072031x5aca7c5ncd7f6780b70a7f4b@mail.gmail.com> Date: Tue, 7 Aug 2007 22:31:00 -0500 From: Novembre To: "Philip M. Gollucci" In-Reply-To: <3b47caa90708071953t515be42etef87a9c72c00dd54@mail.gmail.com> MIME-Version: 1.0 References: <3b47caa90708061959v42c02e3fy8e97137cd2a30504@mail.gmail.com> <46B7F338.30304@riderway.com> <3b47caa90708071953t515be42etef87a9c72c00dd54@mail.gmail.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 03:31:04 -0000 On 8/7/07, Novembre wrote: > > > > 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 :) > > Okay, here's an update. I changed the script to the following ---------- #!/bin/sh # # PROVIDE: ntfsmount # REQUIRE: fusefs # . /etc/rc.subr name="ntfsmount" rcvar=${name}_enable command="/usr/local/bin/ntfs-3g" command_args="/dev/ad0s1 /mnt/windows" load_rc_config $name : ${ntfsmount_enable="NO"} run_rc_command "$1" ---------- and have also put rc_debug="YES" and rc_info="YES" in /etc/rc.conf, and the result is the following ---------- /etc/rc: DEBUG: checkyesno: ntfsmount_enable is set to YES. Starting ntfsmount. /etc/rc: DEBUG: run_rc_command: _doit: /usr/local/bin/ntfs-3g /dev/ad0s1 /mnt/w indows fuse: failed to exec mount program: No such file or directory ---------- I don't exactly know what it means by "fuse: failed to exec mount program: No such file or directory" since /usr/local/bin/ntfs-3g exists, /dev/ad0s1 is my Windows 2000 partition, and I have created /mnt/windows myself. Any ideas?