From owner-freebsd-ports-bugs@freebsd.org Mon Jan 25 21:25:34 2016 Return-Path: Delivered-To: freebsd-ports-bugs@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 00395A46E0A for ; Mon, 25 Jan 2016 21:25:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E48039E9 for ; Mon, 25 Jan 2016 21:25:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0PLPXPX097115 for ; Mon, 25 Jan 2016 21:25:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 204464] sysutils/fusefs-ntfs: No automount with HAL of ntfs-volumes since FreeBSD 10.x Date: Mon, 25 Jan 2016 21:25:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, needs-qa, regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rkoberman@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 21:25:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204464 --- Comment #6 from rkoberman@gmail.com --- I queries on the configuration of automount(8) for ntfs file systems and received two identical responses that, I believe, will resolve you issue. I= was pretty close: - Install fusefs-ntfs - Enable autofs: # sysrc autofs_enable=3DYES # sysrc autounmountd_flags=3D"-t 10" # unmount after 10s of inactivity - Make sure to add this to /etc/auto_master: /media -media -nosuid - Then you need this little patch for /etc/autofs/special_master: --- special_media.bak 2016-01-19 11:00:55.766975000 +0100 +++ special_media 2016-01-20 11:29:56.205575000 +0100 @@ -59,7 +59,16 @@ continue fi - echo "-fstype=3D${_fstype},nosuid :/dev/${_p}" + if [ ${_fstype} =3D "ntfs" ]; then + if [ -f "/usr/local/bin/ntfs-3g" ]; then + echo "-mountprog=3D/usr/local/bin/ntfs-3g,fstype=3D${_fstype},nosuid :/de= v/${_p}" + else + /usr/bin/logger -p info \ + "Cannot mount ${_fstype} formatted devi= ce /dev/${_p}: Install sysutils/fusefs-ntfs first" + fi + else + echo "-fstype=3D${_fstype},nosuid :/dev/${_p}" + fi done # No matching device - don't print anything, autofs will handle it. - Start auto$foo: # service automountd start # service automounter start # service automountd start - Insert the NTFS device - Look for a new directory in /media - Access it A SLIGHTLY different answer from Edward Tomasz: --- special_media (revision 294670) +++ special_media (working copy) @@ -35,7 +35,11 @@ print_one() { _fstype=3D"$(fstyp "/dev/${_key}" 2> /dev/null)" if [ $? -eq 0 ]; then - echo "-fstype=3D${_fstype},nosuid :/dev/${_key}" + if [ ${_fstype} =3D "ntfs" ]; then + echo "-fstype=3D${_fstype},nosuid,mountprog=3D/usr/local/bin/ntfs-3g=20=20=20=20= =20=20=20 :/dev/${_key}" + else + echo "-fstype=3D${_fstype},nosuid :/dev/${_key}" + fi return fi @@ -59,7 +63,11 @@ print_one() { continue fi - echo "-fstype=3D${_fstype},nosuid :/dev/${_p}" + if [ ${_fstype} =3D "ntfs" ]; then + echo "-fstype=3D${_fstype},nosuid,mountprog=3D/usr/local/bin/ntfs-3g :/de= v/${_p}" + else Credit to Lars Engels and Edward Tomasz Napiera=C5=82a. (The latter wrote t= he automounter.) Note that you may want somewhat different options, but I think this should = get you on the right track. If this fixes the issue, please close the ticket. --=20 You are receiving this mail because: You are the assignee for the bug.=