Date: Mon, 25 Jan 2016 21:25:34 +0000 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 Message-ID: <bug-204464-13-IDqMOxS2Yn@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204464-13@https.bugs.freebsd.org/bugzilla/> References: <bug-204464-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204464-13-IDqMOxS2Yn>