Page 1 of 1

Linux - automount external drives - Arch

Posted: Mon Dec 09, 2024 9:53 am
by admin
I was trying to mount external drives for backup of my shack system and special backups of logged contacts. I have many expernal USB drives of differing sizes and found that while Arch Linux is fun, blazing fast and generally reliable, this mount entry in /etc/fstab consistently failed with a scripted mount -a command:

Code: Select all

UUID=e5c5a7ff-7c50-4fb8-a434-07c9xxxxxx83 /run/media/xx/rsyncs auto nosuid,nodev,nofail 0 1
however, the fix is easy:

Code: Select all

UUID=e5c5a7ff-7c50-4fb8-a434-07c9xxxxxx83 /run/media/xx/rsyncs auto nosuid,nodev,nofail,x-systemd 0 1
Arch mounts fstab drives with systemd and needs this addition to afterthought drived in /etc/fstab then it works just fine!
I guess this would also hold good for other distros that also use systemd for drive mounting.

Reference: Arch manual for fstab:
fstab - ArchWiki.pdf