From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 06:51:28 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 05D4616A41A for ; Mon, 8 Oct 2007 06:51:28 +0000 (UTC) (envelope-from novembre@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id A794A13C47E for ; Mon, 8 Oct 2007 06:51:27 +0000 (UTC) (envelope-from novembre@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2360059pyb for ; Sun, 07 Oct 2007 23:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; 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:content-transfer-encoding:content-disposition:references; bh=+ZDaL7SyFltejmnj3fRySIH8M7P1+GUcNkmhRElE0Xs=; b=LdbTzEA9ilW1fazDYM1IEAnJwqV8qck4HJYCNGKM3SS3SJGnqISX9Do5nRvkpbrNfHi3/gI6eDIrbsFJDqLAB8Ij43Le0SFLL+bThG/HB28oTJzx6zuQRAYyFkThg4eSaxstACbDStj61+7DfmNwTJBGTjCO2W2V0Q+8rHjFq+c= 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:content-transfer-encoding:content-disposition:references; b=PULJkN+GzEBmhXDEIXEJqEP58KQ2VWx4EL7CBjkeQDIyb1YkT0nZsenoUAoBmyfo4+I2VRfuOClBC5+StNe3bXqqC4WVzpP1U6to7uPzsvule6+ZAOTkvoIMg5K7ZuFS0t6ExNL4zoCzV0WJo7nO0UxVcE2GBsNq+JdRMUvy8Oo= Received: by 10.64.199.2 with SMTP id w2mr9992784qbf.1191826286070; Sun, 07 Oct 2007 23:51:26 -0700 (PDT) Received: by 10.64.210.17 with HTTP; Sun, 7 Oct 2007 23:51:25 -0700 (PDT) Message-ID: <3b47caa90710072351o463f26b9r6ee532af5cfd3dc7@mail.gmail.com> Date: Mon, 8 Oct 2007 01:51:25 -0500 From: Novembre To: Mel In-Reply-To: <200710071548.04067.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3b47caa90710062301s32d54e30j1f2e64eb65126879@mail.gmail.com> <3b47caa90710070100p7b28e9f8o64b4e76304710c32@mail.gmail.com> <200710071548.04067.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: NTFS-3G mount 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: Mon, 08 Oct 2007 06:51:28 -0000 > > Well, I gave up using /etc/fstab to mount NTFS partitions at boot time a > > couple of months ago when I realized that it's not the correct way to do it > > (so I also wrote an rc.d script to do the job, but I'll talk about it > > later). However, I recently looked at fusefs-ntfs source files, and as you > > can see from > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/fusefs-ntfs/Makefile > > in revision 1.19, there are changes (installing a symlink) to allow using > > /etc/fstab to mount NTFS partitions at boot. So I thought that maybe now > > it's okay to use /etc/fstab. Anyway, if it's still not possible to use > > /etc/fstab, then what does that sentence mean in the revision 1.19 of > > fusefs-ntfs Makefile (again, see the URL above)? > > The only way I can see that working is if /usr/local/modules in > kern.modules_path /before/ mount -a is executed by /etc/rc.d/mount. Which > means there should be a line: > kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules > > in /etc/sysctl.conf on your machine. > Also, mount_ntfs-3g should be able to load the module dynamically. My /etc/sysctl.conf is basically empty; it's all the usual default comments. Nothing is specified there. > > Another question is why, even after loading the kernel module (see the > > 'dmesg -a' output below), it is not possible to mount the NTFS partition? > > ---------- > > [user@pasargadae ~]$ dmesg -a > > ... > > Starting fusefs. > > fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 > > ... > > Mounting late file systems: > > fuse: failed to exec mount program: No such file or directory > > ---------- > > What does ls -l /sbin/mount_ntfs-3g say? There is no /sbin/mount_ntfs-3g. But /usr/sbin/mount_ntfs-3g exists and is a symlink to /usr/local/bin/ntfs-3g. I'm not sure whether it's relevant to your question, but I had made /sbin/mount_ntfs-3g a symlink to /usr/local/bin/ntfs-3g myself, and that also was not working (but I had tired it with the previous version of ntfs-3g not the one currently installed). > > This output from /var/log/messages is also interesting, showing that > > ntfs-3g has indeed been run and that it has mounted my Windows partition > > (but I don't see it mounted)! > > ---------- > > [user@pasargadae ~]$ cat /var/log/messages > > ... > > Oct 6 14:22:40 pasargadae kernel: Trying to mount root from > > ufs:/dev/ad0s2a Oct 6 14:22:45 pasargadae kernel: fuse4bsd: version > > 0.3.9-pre1, FUSE ABI 7.8 > > Oct 6 14:22:45 pasargadae ntfs-3g[811]: Version 1.913 > > Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mounted /dev/ad0s1 (Read-Write, > > label "", NTFS 3.0) > > Oct 6 14:22:45 pasargadae ntfs-3g[811]: Cmdline options: (null) > > Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mount options: > > noatime,silent,allow_other ,fsname=/dev/ad0s1 > > ... > > ---------- > > > And I didn't know about the /boot/modules way. Could you please ellaborate > > more? Is it a different way to load kernel modules than using > > /boot/loader.conf? When should one use that? > > > > And now, about coming back to using an rc.d script...After failing to use > > /etc/fstab, I wrote this script to mount the partition at boot time. > > However, this also does not work! > > ---------- > > #!/bin/sh > > # > > # PROVIDE: ntfsmount > > # REQUIRE: fusefs > > # > > > > . /etc/rc.subr > > > > name="ntfsmount" > > rcvar=${name}_enable > > command="/usr/sbin/mount_ntfs-3g" > > command_args="/dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8" > > Does /mnt/windows exist? > Anything interesting with `sh -x /usr/local/etc/rc.d/ntfsmount' ? Yes, /mnt/windows exists. Nothing interesting as far as I could understand the output of 'sh -x /usr/local/etc/rc.d/ntfsmount'. What specifically do I have to look for? > If I find some more time, I'll play around with it. > -- > Mel Thanks a lot :)