Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 18:15:22 +0200
From:      CeDeROM <cederom@tlen.pl>
To:        mfv@bway.net
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: automount usb msdosfs no partition table
Message-ID:  <CAFYkXj=TT2U3aDyHbZo4%2BmZAwKap2Oidm0xUjOyc_rE9tHutyg@mail.gmail.com>
In-Reply-To: <20171009113604.3a6d2455@gecko4>
References:  <CAFYkXjnmnAxO%2BWSV0a-UjOZn7afoCef1i0O1nq=xZhZViY1zBg@mail.gmail.com> <20171009113604.3a6d2455@gecko4>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 9, 2017 at 5:36 PM, mfv via freebsd-questions
<freebsd-questions@freebsd.org> wrote:
>> On Mon, 2017-10-09 at 01:10 Tomasz CEDRO <tomek@cedro.info> 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=<YourLoginName>
>  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

Hello Marek! Czesc czolem :-) :-) Thank you for your feedback! I will
compare the ports configuration with default system automount
package.. maybe I will discover a way to auto-mount drives with no
partition table which unforunately happens quite often for FAT
drives..

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXj=TT2U3aDyHbZo4%2BmZAwKap2Oidm0xUjOyc_rE9tHutyg>