익명 03:27

24.04, GNOME: How to disable automount?

24.04, GNOME: How to disable automount?

Recent update breaks the old recipe:

gsettings set org.gnome.desktop.media-handling automount false

gsettings set org.gnome.desktop.media-handling automount-open false

Anyone know the fix?



Top Answer/Comment:

@Dan - I had a similar issue.  That command only affects GNOME/Nautilus for the current user.

Check what is setting it back:

gsettings get org.gnome.desktop.media-handling automount
gsettings get org.gnome.desktop.media-handling automount-open

Then try setting it through dconf:

dconf write /org/gnome/desktop/media-handling/automount false
dconf write /org/gnome/desktop/media-handling/automount-open false

Log out and back in after changing it.  If it still automounts, say what desktop/session you are using and whether the mount is coming from Files/Nautilus, Disks, or something else.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다