![]() What would be the current approach for a headless system which mostly operates in text-mode? UpdateĪfter fiddling with all the options usbmount ( apt install usbmount) turned out to be the easiest and just work after editing /lib/systemd/system/rvice changing MountFlags=slave to MountFlags=shared as described in this issue (❗️ UPDATE: For recent systemd versions locate and change PrivateMounts=yes to PrivateMounts=no moreover, since the file is under /libs/. 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. systemd automounting, example of usage: automount-usb.on XFCE via thunar + thunar-volman packages, or the nautilus automount in Gnome with the gnome-volume-manager package (apparently they rely on udisks). automounting provided by the desktop environments, i.e.udisks2 running as a systemd service or via udiskie.udev rules (apparently 'raw rules' might conflict with existing systemd policies).modifying /etc/fstab to add per-drive mounts by UUID/label/device.Approaches to auto-mounting devices in Linux keep changing, and googling returns quite a few solutions with various degrees of applicability for modern systemd-based boxes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |