From owner-freebsd-current@FreeBSD.ORG Sun Oct 21 21:55:01 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85CAD13F; Sun, 21 Oct 2012 21:55:01 +0000 (UTC) (envelope-from root@free.fr) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 5B3C78FC0A; Sun, 21 Oct 2012 21:54:58 +0000 (UTC) Received: from free.fr (unknown [82.235.65.2]) by smtp5-g21.free.fr (Postfix) with ESMTP id C5C2AD48096; Sun, 21 Oct 2012 23:54:54 +0200 (CEST) Subject: Re: mounting ntfs partition To: Attilio Rao From: Raoul MEGELAS Date: Sun, 21 Oct 2012 23:54:54 +0200 Sender: root@free.fr Message-Id: <20121021215454.C5C2AD48096@smtp5-g21.free.fr> Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2012 21:55:01 -0000 On Sun, 21 Oct 2012 14:04:46 +0100 Attilio Rao wrote: Hi Attilio, > On Sun, Oct 21, 2012 at 12:53 PM, Raoul wrote: > Hi, >> >> Trying to mount a partition from type ntfs >> with the following conditions i get: >> >> R241700, with fusefs-libs in sync. >> >> kldload fuse >> fuse loaded >> mount -t ntfs /dev/daXsX >> not supported! >> mount_ntfs /dev/daXsX >> no such file or directory! >> >> in the second case, truss will report: >> sysctl "", ... >> which mean that the path is empty of course. >> >> Perhaps i miss something??? > >Try > >ntfs-3g /dev/daXsX /mnt/ntfs/ ntfs-3g crashes in the following environment: mac x86/64 hardware, running an external usb drive with a freebsd partition (da0s3; da1s1 da1s2 = ntfs partitions. and even if it mounts fine the first read/rwrite panic. >Attilio > > >-- >Peace can only be achieved by understanding - A. Einstein > and now i investigated a little more. i found that mount() is the culprit but where? please see below: gdb mount_ntfs GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) b main Breakpoint 1 at 0x8048dc0: file mount_ntfs.c, line 73. (gdb) b 188 Breakpoint 2 at 0x80492d6: file mount_ntfs.c, line 188. (gdb) set args /dev/da1s1 /mnt (gdb) r y (gdb) r Starting program: /sbin/mount_ntfs /dev/da1s1 /mnt Breakpoint 1, main (argc=) at mount_ntfs.c:73 73 { (gdb) y (gdb) c Continuing. Breakpoint 2, main (argc=3, argv=0xbfbfd798) at mount_ntfs.c:188 188 if (mount("ntfs", mntpath, mntflags, &args) < 0) mntpath = "/mnt/" &args correct too: /dev/da1s1 i am here! Regards raoul rmgls@free.fr