From owner-freebsd-stable@freebsd.org Mon Jan 25 00:50:15 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 2C8EAA45E3A for ; Mon, 25 Jan 2016 00:50:15 +0000 (UTC) (envelope-from kob6558@gmail.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 103A9F5C for ; Mon, 25 Jan 2016 00:50:15 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0CF45A45E36; Mon, 25 Jan 2016 00:50:15 +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 E761FA45E35 for ; Mon, 25 Jan 2016 00:50:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFB97F5B; Mon, 25 Jan 2016 00:50:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi0-x231.google.com with SMTP id w75so78441680oie.0; Sun, 24 Jan 2016 16:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=sGhmpSQubslngMEZbQX5KTQSAiYSCYVbmwaOFzEBWmo=; b=WV7VV8VKGBJrSUsAapeU8mSFgL5gDpnFCFcJ/zYwypVI9gRScw5UnEiAh9zySkk1a+ xnc/gAK23h1+wwfEfx6BH1TsZub8uP9NbhUBzcF82iXgHpdLJ8eWX+61++PiXcpjubjp feTDPOfO3HQlzIKwknFoT/Y6PNKAvBEqQihRpPxYb+ib4X+zW/u0br81mB8l4EJzsZbS 4l0Fk5LeSe9S8NwDcXpVioCHFJ7FhjSr/+kZVlRyiAfACr+ra5l78SDb5EwBq8foLwtN WQdlubG2g4LFm8BtilJiZh+TUTQ//ynsWiPbvHuSmnK9n8cSObzxlInrxazeqhF2uP7C QcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:cc:content-type; bh=sGhmpSQubslngMEZbQX5KTQSAiYSCYVbmwaOFzEBWmo=; b=PhhYddCJhKwwAjU17zGaZC64U3+SzT1/2y/AEFJaYdlgsFO9r+Pm0/0Ursz/xdy5GD zSPJY1u95AO8AopC70xvcheI8whS+3Hm96THd74Pl8+yA1d2QOukzvJF6GKsVeiktfxJ eANzBNBFTWXPJUKfxpHshq+ojSUFdFfF1QD3h8BSBdHLotAr6RVlPxc7Mc5FEHG9awbU NUVpv95KwACOGXEraeEBPwS/u380buclOsa/DTytG/JKbnMVmmiFQmofJhudG0ywJSTz EZ8Erf8JEX/79gYjUis9eCkhbsBT6FHC+sJRAZd2oqDYQhUYUDu9BQca7aNHtS7605f/ 3YLg== X-Gm-Message-State: AG10YOTDrmSCDtC8/3yexK+yV5VmRCO39qSXijY+/nOlcHmxGvxOzt3pp9dpvWOCV+0YlEyS79YFffa4mnDiPA== MIME-Version: 1.0 X-Received: by 10.202.243.68 with SMTP id r65mr6596139oih.3.1453683014021; Sun, 24 Jan 2016 16:50:14 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.202.214.67 with HTTP; Sun, 24 Jan 2016 16:50:13 -0800 (PST) Date: Sun, 24 Jan 2016 16:50:13 -0800 X-Google-Sender-Auth: MC0uxaKxDk6xCdlQD1okZ9SjOfE Message-ID: Subject: Auto-mounting USB NTFS formatted devices on FreeBSD 10.2 and HEAD From: Kevin Oberman To: FreeBSD Stable ML Cc: trasz@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 00:50:15 -0000 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. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683