[Bug 204464] sysutils/fusefs-ntfs: No automount with HAL of ntfs-volumes since FreeBSD 10.x
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 25 21:25:34 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204464
--- Comment #6 from rkoberman at 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=YES
# sysrc autounmountd_flags="-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=${_fstype},nosuid :/dev/${_p}"
+ if [ ${_fstype} = "ntfs" ]; then
+ if [ -f "/usr/local/bin/ntfs-3g" ]; then
+ echo
"-mountprog=/usr/local/bin/ntfs-3g,fstype=${_fstype},nosuid :/dev/${_p}"
+ else
+ /usr/bin/logger -p info \
+ "Cannot mount ${_fstype} formatted device
/dev/${_p}: Install sysutils/fusefs-ntfs first"
+ fi
+ else
+ echo "-fstype=${_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="$(fstyp "/dev/${_key}" 2> /dev/null)"
if [ $? -eq 0 ]; then
- echo "-fstype=${_fstype},nosuid :/dev/${_key}"
+ if [ ${_fstype} = "ntfs" ]; then
+ echo
"-fstype=${_fstype},nosuid,mountprog=/usr/local/bin/ntfs-3g
:/dev/${_key}"
+ else
+ echo "-fstype=${_fstype},nosuid :/dev/${_key}"
+ fi
return
fi
@@ -59,7 +63,11 @@ print_one() {
continue
fi
- echo "-fstype=${_fstype},nosuid :/dev/${_p}"
+ if [ ${_fstype} = "ntfs" ]; then
+ echo
"-fstype=${_fstype},nosuid,mountprog=/usr/local/bin/ntfs-3g :/dev/${_p}"
+ else
Credit to Lars Engels and Edward Tomasz Napierała. (The latter wrote the
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list