Verifying good fstab for portable usb drive entry

Purpose is to create a portable drive that can be plugged and unplugged as needed, but directory shows in a specifice location. using the fstab.

UUID=UUID# /home/****/MyDrive    ext4    noatime,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min 0 2

If there is a better method for getting the usb drive to always mount into the MyDrive partition when it is or gets plugged in I am open to suggestions.

More importantly, if your drive may not be connected at boot, you need the nofail option in order to still allow your system to boot.

1 Like