For the project SamplerBox, up to now I was using
/dev/sda1 /media auto nofail 0 0 to have USB flash drives automatically mounted when inserted on the headless computer, see also Auto-mount and auto-remount with /etc/fstab. But this seems not very reliable, for example, when an USB flash drive is removed, and then re-inserted.
What lightweight and easy-to-configure solution is available in Debian to automatically mount every
/dev/sd* device to
If a second flash drive is plugged, ignore or mount to another folder
If a drive is removed (even without a proper
umount), and then re-inserted a few minutes later it should be mounted again
The use case is a headless device on which the end user can plug USB flash drives, and it should be always recognized (no matter if they removed the previous USB flash drive without asking permission in the software).