From owner-freebsd-stable@freebsd.org Mon Jan 25 16:57:17 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B6C1A4637E for ; Mon, 25 Jan 2016 16:57:17 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 80B28C07 for ; Mon, 25 Jan 2016 16:57:17 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7FA99A4637D; Mon, 25 Jan 2016 16:57:17 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F432A4637C for ; Mon, 25 Jan 2016 16:57:17 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B77AC05; Mon, 25 Jan 2016 16:57:15 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p5B2265C2.dip0.t-ipconnect.de [91.34.101.194]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id u0PGvFGJ090993; Mon, 25 Jan 2016 17:57:15 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id u0PGv7pA060654; Mon, 25 Jan 2016 17:57:07 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id u0PGum6r008353; Mon, 25 Jan 2016 17:57:00 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201601251657.u0PGum6r008353@fire.js.berklix.net> To: Kevin Oberman cc: FreeBSD Stable ML , trasz@freebsd.org Subject: Re: Auto-mounting USB NTFS formatted devices on FreeBSD 10.2 and HEAD From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-URL: http://www.berklix.eu In-reply-to: Your message "Sun, 24 Jan 2016 16:50:13 -0800." Date: Mon, 25 Jan 2016 17:56:48 +0100 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 16:57:17 -0000 Kevin Oberman wrote: > Since the removal of NTFS support, it is unclear how to get USB drives > formatted as NTFS (or ExFAT) to automatically mount. Prior to FreeBSD 10 it > was possible to replace /sbin/mount_ntfs with a script that would generate > appropriate options and exec /usr/local/sbin/ntfs-3g and let HAL fire up > mount_ntfs, but that no longer works as mount_ntfs is no longer used and > mount(8) no longer treats '-t ntfs' as special. > > It would appear that automount(8) would be the right magic, but it's not > obvious to me how to configure it to recognize that an NTFS device has been > connected to a USB port (as opposed to msdosfs) and to use ntfs-3g to do > the actual mount. I assume that the same issue exists for ExFAT. > > Does anyone have an idea of what magic is required in the auto_master or > elsewhere to make this work in conjunction with devd? I'd really like to > avid using hald, if possible. I use devd to auto mount USB NTFS, I just it works with 10.2-RELEASE & an NTFS USB connected drive, here's a chunk from my http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/devd/berklix.conf action "sleep 10; \ rm -f /devusb/acer300; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/acer300.1; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 \ /devusb/acer300.2; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 \ /devusb/acer300.3; \ mkdir -p /media/acer300.2; mkdir -p /media/acer300.3; \ chmod 777 /media/acer300.*; \ chown jhs:staff /media/acer300.*; \ ntfsfix /devusb/acer300.2 ; \ ntfs-3g -o ro /devusb/acer300.2 /media/acer300.2; \ ntfsfix /devusb/acer300.3 ; \ ntfs-3g -o ro /devusb/acer300.3 /media/acer300.3" ; Now I'll read man 8 automount & other people's alternate solutions on the thread :-) Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys. Eng. Consultant Munich http://berklix.eu Mail plain text, No quoted-printable, HTML, base64, MS.doc. Prefix old lines '> ' Reply below old, like play script. Break lines by 80.