Hacker News new | ask | show | jobs
by cpach 3233 days ago
Cool. Is much tweaking needed to get it to work smoothly?
2 comments

If you mean auto-mounting on inserting USB devices, it is handled a bit differently depending on your distribution. E.g. https://wiki.archlinux.org/index.php/Udisks https://wiki.debian.org/AutoFs

I personally don't think it's that much of a trouble to just journalctl for the /dev/sdX of the inserted device and then sudo mount /dev/sdX /mnt/tmp manually, because I so rarely plug USB drives. For permanently attached or frequently used devices you can add them to fstab and mount by UUID to a fixed path.

Either way, you will still always need to umount manually or risk loosing data.

Honestly -- I have no idea, I only had to do it a few times, on Yocto and buildroot images, and in pretty restricted cases. It was pretty easy (basically udev has this file which matches a set of device selection rules with a set of actions, effectively saying "if I encounter a device of this type, I'm going to do these particular things"), but I googled my way through it.

I expect there are some distro-specific hoops to jump through, but I have no idea which ones -- I really don't like automounting, I keep it disabled even on KDE.

(Why? Old habits die hard, I guess?)