At best, the majority of existing systems have settled on adding automation on top of udisks2. There's no "standard way" for doing that. whatever USB storage device), since for the first I can just add the entries to /etc/fstab. GNOME includes automount functionality based on udisks, you can be sure it's officially supported by GNOME themselves. It is not clear which is the current 'officially' supported approach. Automatically mount external drives to /media/LABEL on boot without a user logged in?Īuto-Samba mounting: There is also a fork of automount-usb which automatically adds the attached USB drives as samba read-write mount points. like /media/sda2_mylabel (❗️❗️ UPDATE: automount-usb appears to be unmaintained). It creates mount folders like /media/_ e.g. There is also automount-usb which can be installed by cloning the repo and running configure.sh. The downside is that it creates the mount points under /media/usbN which is not perfect. No need to manually add any UUIDs or labels to any config files. What would be the current approach for a headless system which mostly operates in text-mode? UpdateĪfter fiddling with all the options I found usbmount to (almost) just work after I edited /lib/systemd/system/rvice and changed MountFlags=slave to MountFlags=shared as described in this issue (❗️❗️ UPDATE: For more recent systemd versions PrivateMounts=no should be used instead!). Moreover, it seems that different auto-mounting subsystems can conflict which each other leading to situations when a partition is mounted by one tool and then in a matter of seconds is automatically unmounted by another tool.įor systems with a desktop environment, it is straightforward since most of them handle USB-mounting automatically, so no extra action is necessary apart from enabling the automounting option in settings. The choices can be overwhelming and it is not clear which is the current recommended approach.
0 Comments
Leave a Reply. |