From owner-freebsd-questions@FreeBSD.ORG Sun Oct 7 20:48:14 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 5789616A41B for ; Sun, 7 Oct 2007 20:48:14 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from lerwick.hopto.org (81-86-235-79.dsl.pipex.com [81.86.235.79]) by mx1.freebsd.org (Postfix) with SMTP id 50BF913C468 for ; Sun, 7 Oct 2007 20:48:13 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: (qmail 41453 invoked by uid 98); 7 Oct 2007 21:20:53 +0100 Received: from 192.168.0.20 by polaris.lerwick.hopto.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.88.4/1789. hbedv: 7.1.1.11/6.35.1.178. f-prot: 4.6.6/3.16.14. spamassassin: 3.1.4. Clear:RC:1(192.168.0.20):. Processed in 5.909915 secs); 07 Oct 2007 20:20:53 -0000 Received: from unknown (HELO kingfish.lerwick.hopto.org) (192.168.0.20) by lerwick.hopto.org with SMTP; 7 Oct 2007 21:20:46 +0100 Message-ID: <47093F4B.70300@lerwick.hopto.org> Date: Sun, 07 Oct 2007 21:19:23 +0100 From: Craig Butler User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Novembre References: <3b47caa90710062301s32d54e30j1f2e64eb65126879@mail.gmail.com> <3b47caa90710070100p7b28e9f8o64b4e76304710c32@mail.gmail.com> <200710071548.04067.fbsd.questions@rachie.is-a-geek.net> <3b47caa90710071107g7ce30067k832d97db92afbd1c@mail.gmail.com> In-Reply-To: <3b47caa90710071107g7ce30067k832d97db92afbd1c@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Doug Barton , Mel , freebsd-ports@freebsd.org, freebsd-questions@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: Sun, 07 Oct 2007 20:48:14 -0000 Novembre wrote: > On 10/7/07, Mel wrote: > >> On Sunday 07 October 2007 10:00:35 Novembre wrote: >> >> >>> On 10/7/07, Doug Barton wrote: >>> >>>> On Sun, 7 Oct 2007, Novembre wrote: >>>> >>>>> The first error above is because the fuse kernel module is not yet >>>>> >>>> loaded. >>>> >>>> Well isn't it sort of pointless to proceed until you get the kernel >>>> module loaded at boot time and then see what happens next? >>>> >>> Oh, the kernel module IS loaded as shown in 'dmesg -a' and in >>> /var/log/messages. However, it can't be loaded unless / and /usr file >>> systems are mounted. >>> >> Filesystems that need modules from anywhere else then the root partition >> cannot be loaded from /etc/fstab. >> Either make fusefs-kmod install in /boot/modules >> (echo 'KMOD_DIR=/boot/modules' >> >>> /usr/ports/sysutils/fusefs-kmod/Makefile.local) or mount the filesystem >>> >> using an rc(8) script in /usr/local/etc/rc.d/. >> In the end you do not really care whether it's mounted 20 seconds or 1 >> second >> before login prompt is available. >> >> -- >> Mel >> >> > > > > 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)? > > 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 > ---------- > > 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" > > load_rc_config $name > > : ${ntfsmount_enable="NO"} > > run_rc_command "$1" > ---------- > I have made this script executable and have put ' ntfsmount_enable="YES" ' > in my /etc/rc.conf. So basically, I'm out of ideas now, and I need the > experts' help in this case. I think this problem is way above my current > knowledge of FreeBSD. > > Thanks for your help :) > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Wow thats a lot of work..... one liner in /etc/rc.local /usr/sbin/mount_ntfs-3g /dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 & Job Done :p ============================================================ This email has been handled by lerwick.hopto.org mail server and has been scanned by 3 virus killers and spamassassin ============================================================