From owner-freebsd-ports@FreeBSD.ORG Fri Feb 23 22:16:12 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F9D016A401 for ; Fri, 23 Feb 2007 22:16:12 +0000 (UTC) (envelope-from molnarcs@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id C6B9913C467 for ; Fri, 23 Feb 2007 22:16:11 +0000 (UTC) (envelope-from molnarcs@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so450072ugh for ; Fri, 23 Feb 2007 14:16:10 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=G0BqFApY9uwIE3rso0sEx/hPqkNo7LlEooftBNmiCw0onc5bwLgi+2Gn4js3arLgX0GcS0DE9K5lk8YUyoiXKpCfc6ZHz7hEjYwtXasEHVy7bgIC+qJhmVO7zFkqPaJMIpCjdDad2+/pG+SzxMBMFkZfaTNLO3Xhud+L0Vde7uI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=VaaBISWTWK/1iNq6PrvFjl/T+Fv3DbnDDzDtTItwCJeVTDiRN0ftjpHG0GGZ01twz2YIMrcl52ZxXvGPrxaLbKOS0ev5oTDPJeSJKhb2flUTNj2S4fqtGSkPsLNDxH81c0NVnNnbXvkxXKI20Ru4vVEiLwUTFGaU2SZCF/T4P6o= Received: by 10.67.22.2 with SMTP id z2mr2911229ugi.1172268970468; Fri, 23 Feb 2007 14:16:10 -0800 (PST) Received: from mcsaba.ch.sh.unideb.hu ( [193.6.168.4]) by mx.google.com with ESMTP id h1sm1948804ugf.2007.02.23.14.16.09; Fri, 23 Feb 2007 14:16:09 -0800 (PST) From: Csaba Molnar To: freebsd-ports@freebsd.org Date: Fri, 23 Feb 2007 23:16:06 +0100 User-Agent: KMail/1.9.5 References: <150E08CEC4094342AB141E7D7F15E31E612FC6@hades.dynasty.angstman.com> <45DF4825.9070702@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200702232316.07226.molnarcs@gmail.com> Cc: David Stanford , Jason Gretz , Doug Barton Subject: Re: NTFS-3G install errors X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: molnarcs@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 22:16:12 -0000 2007. February 23. 21.46 dátummal David Stanford ezt írta: > > > First, I would suggest sending posts like this to the > > > freebsd-questions@ list rather than freebsd-ports@. > > > > It's a question about a port. There is no reason not to ask it on > > freebsd-ports@. > > It wasn't a question about a port. It was a question regarding how to > install NTFS-3G directly from source, not from the ports collection. > Version 1.0 of sysutils/fusefs-ntfs was only just committed today. > > -David I see your points - both of yours :) Still, I have a question which I think fits this list: how do you enable it automatically? It would be great if there were pointers in pkg-message, because now it is not very straightforward. Neither fusefs, nor ntfs-3g doesn't work as a fs type in fstab. Enabling fusefs via rc.conf brings in support too lately in the startup process. What I did was to put an rc script in /usr/local/etc/rc.d that requires fusefs and mounts my ntfs filesystem. First, relevant rc_command looked like this: command="ntfs-3g /dev/ad0s1 /mnt/ad0s1/ -o locale=en_US.UTF-8" However, this gave me an error during bootup, and didn't mount the filesystem: Mounting late file systems:mount_fusefs: -o locale=: option not supported However, by pure chance, I found out that running the command a second time will mount the filesystem correctly, even though it spits out these error messages: Failed to open /proc/filesystems: No such file or directory modprobe: not found Failed to open /proc/filesystems: No such file or directory So, finally I have this rc script that works: #!/bin/sh # PROVIDE: ntfsmount # REQUIRE: fusefs . /etc/rc.subr name="ntfsmount" rcvar=`set_rcvar` load_rc_config $name command="ntfs-3g /dev/ad0s1 /mnt/ad0s1 && ntfs-3g /dev/ad0s1 /mnt/ad0s1/ -o locale=en_US.UTF-8" run_rc_command "$1" This works finally, but it is not straightforward at all. I understand that the first error messages are due to linuxism (looking for /proc/filesystems) but I still don't understand why the above command works only on second try. Oh, and this is the behaviour even if I don't have the locale option appended, in other words, having only ntfsd-3g /dev/ad0s1 /mnt/ad0s1 won't work either, it will only work if you run it twice. About the locale option: I have a standard english install of winxp on another partition, and it seems that certain files cannot be deleted without this option (even though they contain only ascii characters, go figure!) - and I'm talking about files that are create from FreeBSD. Now everything works for me (with the usual gotchas I read about on ntfs-3g homepage, like slow copying of large files for instance) - I just thought that sharing these issues might help in improving the port. Bye!