From owner-freebsd-current@freebsd.org Fri Mar 17 06:41:35 2017 Return-Path: Delivered-To: freebsd-current@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 E94AED108A5 for ; Fri, 17 Mar 2017 06:41:35 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msa02a.plala.or.jp (msa02.plala.or.jp [58.93.240.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8C5D0123F for ; Fri, 17 Mar 2017 06:41:34 +0000 (UTC) (envelope-from ish@amail.plala.or.jp) Received: from msc02.plala.or.jp ([172.23.12.32]) by msa02b.plala.or.jp with ESMTP id <20170317064057.OLST21413.msa02b.plala.or.jp@msc02.plala.or.jp> for ; Fri, 17 Mar 2017 15:40:57 +0900 Received: from localhost ([2400:7800:4d3a:6100:5e51:4fff:fe11:73f3]) by msc02.plala.or.jp with ESMTP id <20170317064057.LDBB18406.msc02.plala.or.jp@localhost> for ; Fri, 17 Mar 2017 15:40:57 +0900 Date: Fri, 17 Mar 2017 15:40:53 +0900 (JST) Message-Id: <20170317.154053.1899648480680625098.ish@amail.plala.or.jp> To: freebsd-current@freebsd.org Subject: How to automount an internal ntfs partition ? From: Masachika ISHIZUKA X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-VirusScan: Outbound; msa02m; Fri, 17 Mar 2017 15:40:58 +0900 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2017 06:41:36 -0000 Hi. I want to automount an ntfs partition on internal SSD. I did following on FreeBSD 12.0-CURRENT #0 r315059. (1) install sysutils/fusefs-ntfs (2) add fuse_load="YES" to /boot/loader.conf (3) add '/- -noauto' to /etc/auto_master (4) add '/dev/ada0p4 /windows ntfs rw,noauto,uid=XXX,gid=XXX,dmask=022,fmask=133,locale=ja_JP.UTF-8,mountprog=/usr/local/bin/ntfs-3g,nosuid 0 0' to /etc/fstab (5) reboot At startup, the ntfs partition is on map as follows. % mount | grep windows map -noauto on /windows (autofs) % And it is automounted if I accessed it. % ls /windows /windows: $GetCurrent/ ProgramData/ $Recycle.Bin/ Recovery/ $WINRE_BACKUP_PARTITION.MARKER System Volume Information/ Android/ Users/ BOOTNXT Windows/ Documents and Settings@ Windows10Upgrade/ ESD/ bootmgr Intel/ pagefile.sys Logs/ remixos_install.log PerfLogs/ swapfile.sys Program Files (x86)/ tmp/ Program Files/ % And the map is corrent. % mount | grep windows map -noauto on /windows (autofs) /dev/fuse on /windows (fusefs, local, nosuid, synchronous, automounted) % But I don't access for 10 minutes, /windows is unmounted by autounmountd. Then map is disappear. % mount | grep windows % So /windows is no longer automounted. % ls /windows % How can I configure automountd for an internal ntfs partition. It is working well for ufs partitions and fat partitions. # I want to automatic unmount partitions that are not accessed for a long time because it prevent from damage if some panic occurred. # 11.0-RELEASE-p8 is the same result. -- Masachika ISHIZUKA