Linux - automount external drives - Arch
Posted: Mon Dec 09, 2024 9:53 am
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:
however, the fix is easy:
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:
Code: Select all
UUID=e5c5a7ff-7c50-4fb8-a434-07c9xxxxxx83 /run/media/xx/rsyncs auto nosuid,nodev,nofail 0 1
Code: Select all
UUID=e5c5a7ff-7c50-4fb8-a434-07c9xxxxxx83 /run/media/xx/rsyncs auto nosuid,nodev,nofail,x-systemd 0 1
I guess this would also hold good for other distros that also use systemd for drive mounting.
Reference: Arch manual for fstab: