[CentOS] how do I stop automount of Hitichi Lifestudio USB drive

Wed Aug 12 21:22:51 UTC 2015
m.roth at 5-cent.us <m.roth at 5-cent.us>

Michael Hennebry wrote:
> On Wed, 12 Aug 2015, Fred Smith wrote:
>
>> On Wed, Aug 12, 2015 at 03:34:53PM -0500, Michael Hennebry wrote:
>>>
>>> Most of the time, if I plug a USB drive into my computer,
>>> gnome/centos/whatever will ask me what I want to do with it.
>>> With a Hitachi Lifestudio, all the partitions mount without asking me.
>>>
>>> How do I stop that behavior?
>
>> Not sure, but if  you made entries for it in /etc/fstab that
>> explicitly said not to mount, that might do the trick.
>>
>> It looks as if the "noauto" option should do the trick.
>
> That might work.
> I could add 30 entries to fstab:  /dev/sd[cde][1-9]
>
> My suspicion is that whatever is mounting the drive
> is treating it special and might ignore fstab.
> Ideally I'd learn the the name of the automounter and what database to
> edit.

autofs is what's mounting it. But if you turn it off, you'll have to
manually mount anything that's not in /etc/fstab.

Sounds like gnome's trying to be WinDoze....

      mark