less than 1 minute read

to auto mount usb drives on bootup one can simply add some lines to the /etc/fstab file:

UUID=e0a4c8da-67d1-423d-939c-4dc8249079f0 /mnt/small btrfs rw,defaults,nofail 0 0

you need to change the following:

  • the UUID you can find out through: ls -l /dev/disk/by-uuid/
  • change the mount point
  • change the file system
  • pay attention: the nofail option will mount the drive only if it is plugged in