RPi: automount USB drives via fstab
for mounting external usb drives one can use fstab. each column has its specific meaning (see here for definitions).
for external usb drives it is important to set some specific options:
- auto: do automatic mounting
- users: users can mount themselfs
- nofail: dont expect that drive is attached at boot up
- x-systemd.device-timeout=1: dont wait no longer than 1s for drive at boot up
full line looks like the following
$ cat /etc/fstab
...
UUID=ffd9b0a1-931f-4795-85ba-28c58719a938 /mnt/USBBkupDisk ext4 auto,rw,users,nofail,x-systemd.device-timeout=1 0 2