[PLUG] Disabling automatic mounting of USB connected mass storage

Richard Owlett rowlett at cloud85.net
Mon Jan 7 19:27:44 UTC 2019


On 01/07/2019 11:43 AM, John Jason Jordan wrote:
> On Mon, 7 Jan 2019 09:32:01 -0600
> Richard Owlett <rowlett at cloud85.net> dijo:
> 
>> I'm using Debian Stretch with MATE desktop.
>> I have a collection of USB drives (from 32GB -> 1TB) each with
>> multiple partitions.
>>
>> When I plug them in I don't  want anything automatically mounted.
>> I want to have them appear in MATE's "Devices" menu for individual
>> selection.
> 
> I have only Xfce, but there is a page in the Xfce GUI 'Settings
> Manager' labeled 'Removable Drives and Media' where this can be done
> just by unchecking a box. Surely there is a command that unchecking
> that box invokes. Unfortunately, I don't know how to figure out what
> the command is from the GUI. But at least I can say that it is possible.

Yep. All the hits I got on DuckDuckGo were for desktops other than MATE.
A Gnome user on debian-user pointed me to a command line solution:
    > gsettings set org.mate.media-handling automount false

For my specific project it appears there may be side benefits.
Will have to do some reading and testing.








More information about the PLUG mailing list