On 2012-04-24, intrigeri <intrigeri@???> wrote:
> Robert Ransom wrote (24 Apr 2012 13:56:55 GMT) :
>> I have no idea how to detect this event or act on it (other than by
>> monitoring klogd's output, which is a yucky flaky hack).
>
> Does "udevadm monitor" see any event?
See attached. (This time I used a different (smaller) SD card in a
different slot of my card reader; it happened to have an MBR partition
table with a single FAT partition.)
Robert Ransom
KERNEL[1107514.808226] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107514.809899] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107514.811658] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107514.812511] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107514.817864] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107514.818040] add /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde/sde1 (block)
UDEV [1107515.007591] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107515.169052] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107515.329968] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107515.491462] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107515.651668] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107515.799094] add /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde/sde1 (block)
KERNEL[1107520.190068] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
KERNEL[1107520.212796] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde/sde1 (block)
UDEV [1107520.305246] change /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde (block)
UDEV [1107520.305941] remove /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.0/host12/target12:0:0/12:0:0:2/block/sde/sde1 (block)