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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s