From owner-freebsd-questions@freebsd.org Mon Oct 9 15:36:21 2017 Return-Path: Delivered-To: freebsd-questions@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 0A192E33550 for ; Mon, 9 Oct 2017 15:36:21 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.v6.bway.net [IPv6:2607:d300:1::28]) (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 9A0377E4DA for ; Mon, 9 Oct 2017 15:36:20 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-188.dsl.bway.net [216.220.115.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id 5312A95854 for ; Mon, 9 Oct 2017 11:36:05 -0400 (EDT) Date: Mon, 9 Oct 2017 11:36:04 -0400 From: mfv To: freebsd-questions@freebsd.org Subject: Re: automount usb msdosfs no partition table Message-ID: <20171009113604.3a6d2455@gecko4> In-Reply-To: References: Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 15:36:21 -0000 > On Mon, 2017-10-09 at 01:10 Tomasz CEDRO wrote: > >Hello world :-) > >I need to configure automount for a testing machine. It seems to work >fine, except for two issues: > >1. Mount point does not disappear after device disappears, what makes >things harder to script when device is gone. automount -c does not >remove the mountpoint, only restarting the service does. It is a bug >or feature? > >2. Automounter does not mount USB Pendrive / MSDOSFS devices that does >not have a parition table. Some USB Drives does not have valid >partition table, they appear as /dev/da0 and can be mounted with >mount_msdosfs /dev/da0 /mnt, but they are not recognised by >automounter.. how can I make it work with such devices? > >Any hints appreciated :-) >Tomek > Hello Tomek, The port/package, sysutils/automount, is able to do what you want. It automatically mounts MSDOS or gpart partioned USB thumb drives. Alas, it does not automatically mount CD/DVDs which require command line intervention. My configuration file (/usr/local/etc/automount.conf) differs from the sample as follow: MNTPREFIX=/media USERUMOUNT=YES ATIME=NO REMOVEDIRS=YES USER= NOTIFY=YES A devd configuration file that was installed by pkg was not changed. It is located at /usr/local/etc/devd/automount_devd.conf. My GUI desktop of choice is XFCE4 which has a plugin that recognises automatically mounted devices. It is possible to use this plugin to umount a USB thumb drive OR use the command line in a virtual terminal to umount in the traditional way. Cheers ... Marek