I have quite a bit of removable media (flash drives, external hard drives, etc) that I want to adjust auto mount options for. How does one do this? Is there something similar to /etc/fstab?
Asked
Active
Viewed 1.3k times
10
-
1Which desktop environment? – Gilles 'SO- stop being evil' Nov 18 '13 at 21:52
-
There is an [open issue](https://bugs.freedesktop.org/show_bug.cgi?id=33461) about this. Basically it says that setting "global" auto mount options is currently not possible. You need to have root privilege and set `/etc/fstab` manually (udisks will read it). – Eddy Xiao Oct 25 '19 at 04:42
2 Answers
5
In order to specify automount options across any DE you can specify this with udisks configuration: https://wiki.archlinux.org/index.php/Udisks#Udisks
Something such as:
udisks --mount /dev/sda1 --mount-options options
autofs also works: https://wiki.archlinux.org/index.php/Autofs
don_crissti
- 79,330
- 30
- 216
- 245
-
2udisks is deprecated, can you please update your answer for udisks2 ? – Alex Jones Mar 10 '19 at 06:30
1
This functionality is now available in udisks2 since version 2.9.0. See the documentation here for how to configure default and allowed mount options.
jwillikers
- 121
- 3
-
I currently use Ubuntu 18 which uses udisks2 2.7, can I set default mount options there? – Luis Ayuso Oct 24 '22 at 14:44