Jonathan Billings
2015-Aug-13 00:54 UTC
[CentOS] how do I stop automount of Hitichi Lifestudio USB drive
On Aug 12, 2015, at 5:22 PM, m.roth at 5-cent.us wrote:> 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....Its not ?autofs? specifically (which is a simple thing) but udev talking to udisks, allowing your login session to use udisks to mount the volumes if allowed by PolicyKit, speaking through dbus. Yeah. -- Jonathan Billings <billings at negate.org>
Michael Hennebry
2015-Aug-13 17:52 UTC
[CentOS] how do I stop automount of Hitichi Lifestudio USB drive
On Wed, 12 Aug 2015, Jonathan Billings wrote:> On Aug 12, 2015, at 5:22 PM, m.roth at 5-cent.us wrote: >> 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.... > > Its not ?autofs? specifically (which is a simple thing) but udev talking to udisks, allowing your login session to use udisks to mount the volumes if allowed by PolicyKit, speaking through dbus.How do I get the ask-first behavior? How do I tell what makes Lifestudio special? When I plug in an SD card through a USB adapter, something asks what I want to do and lists options. In case it helps: [root at localhost sata400-12-homes]# find / -name '*autofs*' /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/autofs4 /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/autofs4/autofs4.ko /lib/modules/2.6.32-504.23.4.el6.x86_64/kernel/fs/autofs4 /lib/modules/2.6.32-504.23.4.el6.x86_64/kernel/fs/autofs4/autofs4.ko /lib/modules/2.6.32-573.1.1.el6.x86_64/kernel/fs/autofs4 /lib/modules/2.6.32-573.1.1.el6.x86_64/kernel/fs/autofs4/autofs4.ko /lib/modules/2.6.32-504.8.1.el6.x86_64/kernel/fs/autofs4 /lib/modules/2.6.32-504.8.1.el6.x86_64/kernel/fs/autofs4/autofs4.ko /lib/modules/2.6.32-504.16.2.el6.x86_64/kernel/fs/autofs4 /lib/modules/2.6.32-504.16.2.el6.x86_64/kernel/fs/autofs4/autofs4.ko /.autofsck /usr/lib/python2.6/site-packages/sos/plugins/autofs.pyo /usr/lib/python2.6/site-packages/sos/plugins/autofs.py /usr/lib/python2.6/site-packages/sos/plugins/autofs.pyc [root at localhost sata400-12-homes]# -- Michael hennebry at web.cs.ndsu.NoDak.edu "SCSI is NOT magic. There are *fundamental technical reasons* why it is necessary to sacrifice a young goat to your SCSI chain now and then." -- John Woods
Leon Fauster
2015-Aug-13 19:27 UTC
[CentOS] how do I stop automount of Hitichi Lifestudio USB drive
Am 13.08.2015 um 19:52 schrieb Michael Hennebry <hennebry at web.cs.ndsu.nodak.edu>:> On Wed, 12 Aug 2015, Jonathan Billings wrote: > >> On Aug 12, 2015, at 5:22 PM, m.roth at 5-cent.us wrote: >>> 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.... >> >> Its not ?autofs? specifically (which is a simple thing) but udev talking to udisks, allowing your login session to use udisks to mount the volumes if allowed by PolicyKit, speaking through dbus. > > How do I get the ask-first behavior? > How do I tell what makes Lifestudio special? > When I plug in an SD card through a USB adapter, > something asks what I want to do and lists options.Could you provide more context information? Appliance setup, Dekstop setup, server setup? There exist a lot scenarios where something happen automagically? -- LF
Jonathan Billings
2015-Aug-13 19:57 UTC
[CentOS] how do I stop automount of Hitichi Lifestudio USB drive
On Thu, Aug 13, 2015 at 12:52:26PM -0500, Michael Hennebry wrote:> On Wed, 12 Aug 2015, Jonathan Billings wrote: > >Its not ?autofs? specifically (which is a simple thing) but udev > talking to udisks, allowing your login session to use udisks to > mount the volumes if allowed by PolicyKit, speaking through dbus. > > How do I get the ask-first behavior? > How do I tell what makes Lifestudio special? > When I plug in an SD card through a USB adapter, > something asks what I want to do and lists options. > > In case it helps: > [root at localhost sata400-12-homes]# find / -name '*autofs*' > /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/autofs4As I said earlier, this behavior isn't autofs. Don't blame autofs. autofs is a nice tool. autofs is easy to understand, enable and disable. To disable the auto-mounting of USB disks via udisks, you'd need to set up a custom udev rule. Of course, it's hard to know which existing udev rule is catching your disk, as you said, behavior is different with an SD card than with a USB disk. For CentOS6, the udev configuration for udisks is: /lib/udev/rules.d/80-udisks.rules ... while in CentOS7, the udisks2 udev config is: /usr/lib/udev/rules.d/80-udisks2.rules You'd put the custom rule in /etc/udev/rules.d/. These rules depend on the device name, vendor and model ID, drivers used, etc. You'd have to write a custom udev rule either for that particular device, or something more generic for that class of device. You might want to consider just disabling udisks{,2} entirely, if you don't use the features. -- Jonathan Billings <billings at negate.org>
Maybe Matching Threads
- how do I stop automount of Hitichi Lifestudio USB drive
- how do I stop automount of Hitichi Lifestudio USB drive
- how do I stop automount of Hitichi Lifestudio USB drive
- how do I stop automount of Hitichi Lifestudio USB drive
- how do I stop automount of Hitichi Lifestudio USB drive