[Mageia-dev] Media mounting broken
JA Magallón
jamagallon at ono.com
Tue Jan 31 10:28:07 CET 2012
Hi all...
Since some time ago, automounting of media (USB, CD) seems gone nuts.
How can I debug this ?
First of all, I have udisks2 installed, not udisks, even if the later
is also in the repos. I suppose newer version supersedes it, as it is
required by gnome-disk-utility (formerly palimpsest).
For example, when inserting a USB thumb drive, udev seems to catch it:
werewolf:~# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[8140.437415] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4 (usb)
KERNEL[8140.437527] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0 (usb)
KERNEL[8140.437682] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17 (scsi)
KERNEL[8140.437767] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/scsi_host/host17 (scsi_host)
UDEV [8140.444785] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4 (usb)
UDEV [8140.449742] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0 (usb)
UDEV [8140.452579] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17 (scsi)
UDEV [8140.455196] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/scsi_host/host17 (scsi_host)
KERNEL[8141.438425] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0 (scsi)
KERNEL[8141.438459] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0 (scsi)
KERNEL[8141.438636] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/scsi_disk/17:0:0:0 (scsi_disk)
KERNEL[8141.438658] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/scsi_device/17:0:0:0 (scsi_device)
KERNEL[8141.438679] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/bsg/17:0:0:0 (bsg)
UDEV [8141.441583] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0 (scsi)
KERNEL[8141.441768] add /devices/virtual/bdi/8:128 (bdi)
UDEV [8141.444283] add /devices/virtual/bdi/8:128 (bdi)
UDEV [8141.444538] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0 (scsi)
UDEV [8141.447279] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/scsi_disk/17:0:0:0 (scsi_disk)
UDEV [8141.447705] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/scsi_device/17:0:0:0 (scsi_device)
UDEV [8141.447880] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/bsg/17:0:0:0 (bsg)
KERNEL[8141.584293] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/block/sdi (block)
KERNEL[8141.584332] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/block/sdi/sdi1 (block)
UDEV [8141.813113] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/block/sdi (block)
UDEV [8141.919823] add /devices/pci0000:00/0000:00:1a.7/usb7/7-4/7-4:1.0/host17/target17:0:0/17:0:0:0/block/sdi/sdi1 (block)
Also udisks2:
werewolf:~# udisksctl monitor
Monitoring the udisks daemon. Press Ctrl+C to exit.
10:22:37.751: The udisks-daemon is running (name-owner :1.65).
10:22:45.296: Added /org/freedesktop/UDisks2/drives/LG_USB_Drive_AA00000000003834
org.freedesktop.UDisks2.Drive:
ConnectionBus: usb
Ejectable: true
Media:
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility:
MediaRemovable: true
Model: USB Drive
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: true
Revision: 1100
RotationRate: -1
Serial: AA00000000003834
Size: 2029518848
SortKey: 01hotplug/1328001765294221
TimeDetected: 1328001765294221
TimeMediaDetected: 1328001765294221
Vendor: LG
WWN:
10:22:45.298: Added /org/freedesktop/UDisks2/block_devices/sdi
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdi
DeviceNumber: 2176
Drive: '/org/freedesktop/UDisks2/drives/LG_USB_Drive_AA00000000003834'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSystem: false
IdLabel:
IdType:
IdUUID:
IdUsage:
IdVersion:
PreferredDevice: /dev/sdi
ReadOnly: false
Size: 2029518848
Symlinks: /dev/disk/by-id/usb-LG_USB_Drive_AA00000000003834-0:0
/dev/disk/by-path/pci-0000:00:1a.7-usb-0:4:1.0-scsi-0:0:0:0
org.freedesktop.UDisks2.PartitionTable:
Type: dos
10:22:45.403: Added /org/freedesktop/UDisks2/block_devices/sdi1
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: '/'
Device: /dev/sdi1
DeviceNumber: 2177
Drive: '/org/freedesktop/UDisks2/drives/LG_USB_Drive_AA00000000003834'
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSystem: false
IdLabel: LG SUSANA
IdType: vfat
IdUUID: F097-3210
IdUsage: filesystem
IdVersion: FAT16
PreferredDevice: /dev/sdi1
ReadOnly: false
Size: 2029502464
Symlinks: /dev/disk/by-id/usb-LG_USB_Drive_AA00000000003834-0:0-part1
/dev/disk/by-label/LG\x20SUSANA
/dev/disk/by-path/pci-0000:00:1a.7-usb-0:4:1.0-scsi-0:0:0:0-part1
/dev/disk/by-uuid/F097-3210
org.freedesktop.UDisks2.Filesystem:
MountPoints:
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 16384
Size: 2029502464
Table: '/org/freedesktop/UDisks2/block_devices/sdi'
Type: 0x06
UUID:
These are the same logs for an empty DVD disk:
udev:
KERNEL[8232.929362] change /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sr0 (block)
UDEV [8232.983491] change /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sr0 (block)
udisks2:
10:24:09.656: /org/freedesktop/UDisks2/drives/WDC_WD3200AVJS_63WDA0_WD_WCARW2347788: org.freedesktop.UDisks2.Drive.Ata: Properties Changed
SmartUpdated: 1328001849
10:24:09.827: /org/freedesktop/UDisks2/drives/ST3320620AS_6QF1QZVN: org.freedesktop.UDisks2.Drive.Ata: Properties Changed
SmartUpdated: 1328001849
10:24:09.980: /org/freedesktop/UDisks2/drives/ST3500418AS_5VM8G8RY: org.freedesktop.UDisks2.Drive.Ata: Properties Changed
SmartUpdated: 1328001849
10:24:10.159: /org/freedesktop/UDisks2/drives/ST3250310AS_5RY14KMR: org.freedesktop.UDisks2.Drive.Ata: Properties Changed
SmartUpdated: 1328001850
10:24:16.466: /org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GH22NS50_K1197AJ3056: org.freedesktop.UDisks2.Drive: Properties Changed
TimeMediaDetected: 1328001856464043
OpticalNumTracks: 1
OpticalNumSessions: 1
OpticalBlank: true
Optical: true
Media: optical_dvd_r
MediaAvailable: true
Size: 2048
10:24:16.466: /org/freedesktop/UDisks2/block_devices/sr0: org.freedesktop.UDisks2.Block: Properties Changed
Size: 2048
And these for a Mageia-1 install DVD:
udev:
KERNEL[8366.561352] change /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sr0 (block)
UDEV [8375.155151] change /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sr0 (block)
udisks2:
10:26:38.636: /org/freedesktop/UDisks2/block_devices/sr0: Added interface org.freedesktop.UDisks2.Filesystem
MountPoints:
10:26:38.637: /org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GH22NS50_K1197AJ3056: org.freedesktop.UDisks2.Drive: Properties Changed
TimeMediaDetected: 1328001998635413
OpticalNumDataTracks: 1
OpticalNumTracks: 1
OpticalNumSessions: 1
Optical: true
Media: optical_dvd
MediaAvailable: true
Size: 3906994176
10:26:38.638: /org/freedesktop/UDisks2/block_devices/sr0: org.freedesktop.UDisks2.Block: Properties Changed
IdLabel: 1-x86_64
IdType: iso9660
IdUsage: filesystem
Size: 3906994176
Symlinks: /dev/cdrom1
/dev/cdrw1
/dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GH22NS50_K1197AJ3056
/dev/disk/by-id/wwn-0x5001480000000000
/dev/disk/by-label/1-x86_64
/dev/disk/by-path/pci-0000:00:1f.2-scsi-5:0:0:0
/dev/dvd1
/dev/dvdrw1
So what is the next step to check ?
--
J.A. Magallon <jamagallon()ono!com> \ Winter is coming...
More information about the Mageia-dev
mailing list