[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mounting a USB device



On Tue 27 Oct 2020 at 15:51:06 +0000, Mick Ab wrote:

> If a filesystem in /etc/fstab has a noauto entry, can that filesystem only
> be mounted manually using the mount command or
> is there any chance that it will be automatically mounted by
> usbmount ?
> 
> The filesystem is used in a USB port.

I too used usbmount in the distant past; it is now consigned to the
refuse bin of history. In my /etc/fstab I have

LABEL=ARCHIVE-10 /media/ARCHIVE-10 vfat ro,gid=1000,fmask=0117,dmask=0007,noatime,noauto,user,x-systemd.automount,x-systemd.idle-timeout=5,x-systemd.device-timeout=1 0 0

The USB stick is mounted when it is accessed and unmounted after 5
seconds of non-use. Works brilliantly.

-- 
Brian.


Reply to: