Re: how do I stop automount of Hitichi Lifestudio USB drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 14 Aug 2015, Jason Warr wrote:

On Fri, 2015-08-14 at 12:39 -0500, Michael Hennebry wrote:

I've been trying to read 80-udisks.rules with little success.
Would posting it (242 lines) be helpful?
After I plug in a drive,
is there a way to discover what udev rule was applied?

udevadm test /sys/<device_path>

should give you a whole lot of output.  This will include info about what rules apply to the device
and actions that udev would take.

I did it twice, once with a USB SD card
reader and once with another USB drive
I discovered that the mount without asking
behavior is not specific to Hitachi.

Both experiments produced more than two hundred lines of output.
Interpretation escapes me.
I expect that posting them here would be considered rude.
I did a grep -n apply on both of them.

I did the test on the SD card reader while the what-to-do popup was visible:
98:udev_rules_apply_to_event: RUN 'socket:/org/kernel/dm/multipath_event' /lib/udev/rules.d/40-multipath.rules:16
99:udev_rules_apply_to_event: LINK 'block/8:33' /lib/udev/rules.d/50-udev-default.rules:3
100:udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:76
110:udev_rules_apply_to_event: OWNER 0 /etc/udev/rules.d/60-libsane.rules:3
111:udev_rules_apply_to_event: GROUP 100 /etc/udev/rules.d/60-libsane.rules:3
112:udev_rules_apply_to_event: MODE 0664 /etc/udev/rules.d/60-libsane.rules:3
114:udev_rules_apply_to_event: LINK 'disk/by-id/usb-Generic_STORAGE_DEVICE_000000009451-0:0-part1' /lib/udev/rules.d/60-persistent-storage.rules:55
115:udev_rules_apply_to_event: LINK 'disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part1' /lib/udev/rules.d/60-persistent-storage.rules:76
116:udev_rules_apply_to_event: IMPORT '/sbin/blkid -o udev -p /dev/sdc1' /lib/udev/rules.d/60-persistent-storage.rules:90
125:udev_rules_apply_to_event: LINK 'disk/by-uuid/3DBE-2637' /lib/udev/rules.d/60-persistent-storage.rules:100
126:udev_rules_apply_to_event: RUN 'udev-acl --action=$env{ACTION} --device=$env{DEVNAME}' /lib/udev/rules.d/70-acl.rules:53
127:udev_rules_apply_to_event: IMPORT 'fstab_import sdc1 block/8:33 disk/by-id/usb-Generic_STORAGE_DEVICE_000000009451-0:0-part1 disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part1 disk/by-uuid/3DBE-2637 mapper/' /lib/udev/rules.d/79-fstab_import.rules:1
150:udev_rules_apply_to_event: IMPORT 'udisks-part-id /dev/sdc1' /lib/udev/rules.d/80-udisks.rules:87
182:udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /etc/udev/rules.d/90-hal.rules:2

I did the test on the other after all the partitions had been mounted.
Not much choice:
98:udev_rules_apply_to_event: RUN 'socket:/org/kernel/dm/multipath_event' /lib/udev/rules.d/40-multipath.rules:16
99:udev_rules_apply_to_event: LINK 'block/8:34' /lib/udev/rules.d/50-udev-default.rules:3
100:udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:76
110:udev_rules_apply_to_event: OWNER 0 /etc/udev/rules.d/60-libsane.rules:3
111:udev_rules_apply_to_event: GROUP 100 /etc/udev/rules.d/60-libsane.rules:3
112:udev_rules_apply_to_event: MODE 0664 /etc/udev/rules.d/60-libsane.rules:3
114:udev_rules_apply_to_event: LINK 'disk/by-id/usb-WD_1200BB_External_57442D5743414C4B31343036323635-0:0-part2' /lib/udev/rules.d/60-persistent-storage.rules:55
115:udev_rules_apply_to_event: LINK 'disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part2' /lib/udev/rules.d/60-persistent-storage.rules:76
116:udev_rules_apply_to_event: IMPORT '/sbin/blkid -o udev -p /dev/sdc2' /lib/udev/rules.d/60-persistent-storage.rules:90
124:udev_rules_apply_to_event: LINK 'disk/by-uuid/f9bda2dd-8e62-4493-a612-3582f8e639f5' /lib/udev/rules.d/60-persistent-storage.rules:100
125:udev_rules_apply_to_event: RUN 'udev-acl --action=$env{ACTION} --device=$env{DEVNAME}' /lib/udev/rules.d/70-acl.rules:53
126:udev_rules_apply_to_event: IMPORT 'fstab_import sdc2 block/8:34 disk/by-id/usb-WD_1200BB_External_57442D5743414C4B31343036323635-0:0-part2 disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part2 disk/by-uuid/f9bda2dd-8e62-4493-a612-3582f8e639f5 mapper/' /lib/udev/rules.d/79-fstab_import.rules:1
149:udev_rules_apply_to_event: IMPORT 'udisks-part-id /dev/sdc2' /lib/udev/rules.d/80-udisks.rules:87
194:udev_rules_apply_to_event: RUN 'socket:@/org/freedesktop/hal/udev_event' /etc/udev/rules.d/90-hal.rules:2

As before, interpretation escapes me.

--
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                             --  someeecards
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux