Upstart to automount USB in Ubuntu Server 20.04

usbmount is the tool to automatically mount and unmount USB mass storage devices.

You can install it like so:

Run in the terminal:

sudo apt update

Then run:

sudo apt install usbmount

Then run:

sudo systemctl restart udev

Done. When a USB storage device is connected, it will be mounted under /media/usb[0-7] and it will be unmounted when disconnected.