USB volumes not mounting... what's missing?

Simon Geard delgarde at ihug.co.nz
Fri Nov 10 01:46:35 PST 2006


I'm trying to make a USB stick automount on a new LFS system, but HAL
doesn't seem to be acquiring all the info it should have. Udev creates
the device node which can be mounted by hand.

Running udevmonitor produces the following when the device is plugged
in:

UEVENT[1163146582.690775] add@/devices/pci0000:00/0000:00:02.2/usb3/3-5
UEVENT[1163146582.690806]
add@/devices/pci0000:00/0000:00:02.2/usb3/3-5/usbdev3.15_ep00
UEVENT[1163146582.690815]
add@/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0
UEVENT[1163146582.690823] add@/class/scsi_host/host6
UEVENT[1163146582.690830]
add@/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep81
UEVENT[1163146582.690838]
add@/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep02
UEVENT[1163146582.690846] add@/class/usb_device/usbdev3.15
UEVENT[1163146587.624520]
add@/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0
UEVENT[1163146587.624551] add@/class/scsi_disk/6:0:0:0
UEVENT[1163146587.645615] add@/block/sdb
UEVENT[1163146587.645648] add@/block/sdb/sdb1
UEVENT[1163146587.645656] add@/class/scsi_device/6:0:0:0

And the following appears in the HAL log...

21:16:22.691 [I] osspec.c:226: SEQNUM=906, ACTION=add, SUBSYSTEM=usb,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5, DEVNAME=,
IFINDEX=0
21:16:22.691 [I]
hotplug.c:168: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5 is a bus
device (subsystem)
21:16:22.691 [I] physdev.c:1583: phys_add: subsys=usb
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5,
parent=0x08148a20
21:16:22.699 [I] physdev.c:1508: Add callouts completed
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A
21:16:22.699 [I] hald.c:106: Added device to GDL;
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A
21:16:22.700 [I] osspec.c:226: SEQNUM=907, ACTION=add,
SUBSYSTEM=usb_endpoint,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/usbdev3.15_ep00,
DEVNAME=/dev/usbdev3.15_ep00, IFINDEX=0
21:16:22.701 [I]
hotplug.c:171: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/usbdev3.15_ep00 is a class device (subsystem)
21:16:22.702 [I] classdev.c:1345: class_add: subsys=usb_endpoint
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/usbdev3.15_ep00
dev=/dev/usbdev3.15_ep00 physdev=0x08160aa0
21:16:22.702 [I] osspec.c:226: SEQNUM=908, ACTION=add, SUBSYSTEM=usb,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0, DEVNAME=,
IFINDEX=0
21:16:22.702 [I]
hotplug.c:168: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0 is
a bus device (subsystem)
21:16:22.702 [I] physdev.c:1583: phys_add: subsys=usb
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0,
parent=0x08160aa0
21:16:22.708 [I] physdev.c:1508: Add callouts completed
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0
21:16:22.708 [I] hald.c:106: Added device to GDL;
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0
21:16:22.709 [W] hald_dbus.c:89: No property info.capabilities on device
with id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A
21:16:22.710 [I] osspec.c:226: SEQNUM=909, ACTION=add,
SUBSYSTEM=scsi_host, DEVPATH=/sys/class/scsi_host/host6, DEVNAME=,
IFINDEX=0
21:16:22.763 [I] hotplug.c:171: /sys/class/scsi_host/host6 is a class
device (subsystem)
21:16:22.763 [I] classdev.c:1345: class_add: subsys=scsi_host
sysfs_path=/sys/class/scsi_host/host6 dev= physdev=0x08160b60
21:16:22.769 [I] classdev.c:1208: Add callouts completed
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host
21:16:22.769 [I] hald.c:106: Added device to GDL;
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host
21:16:22.770 [I] osspec.c:226: SEQNUM=910, ACTION=add,
SUBSYSTEM=usb_endpoint,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep81, DEVNAME=/dev/usbdev3.15_ep81, IFINDEX=0
21:16:22.771 [I]
hotplug.c:171: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep81 is a class device (subsystem)
21:16:22.771 [I] classdev.c:1345: class_add: subsys=usb_endpoint
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep81 dev=/dev/usbdev3.15_ep81 physdev=0x08160b60
21:16:22.771 [W] hald_dbus.c:89: No property info.capabilities on device
with id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A
21:16:22.772 [I] osspec.c:226: SEQNUM=911, ACTION=add,
SUBSYSTEM=usb_endpoint,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep02, DEVNAME=/dev/usbdev3.15_ep02, IFINDEX=0
21:16:22.773 [I]
hotplug.c:171: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep02 is a class device (subsystem)
21:16:22.773 [I] classdev.c:1345: class_add: subsys=usb_endpoint
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/usbdev3.15_ep02 dev=/dev/usbdev3.15_ep02 physdev=0x08160b60
21:16:22.774 [I] osspec.c:226: SEQNUM=912, ACTION=add,
SUBSYSTEM=usb_device, DEVPATH=/sys/class/usb_device/usbdev3.15,
DEVNAME=/dev/bus/usb/3/15, IFINDEX=0
21:16:22.775 [I] hotplug.c:171: /sys/class/usb_device/usbdev3.15 is a
class device (subsystem)
21:16:22.775 [I] classdev.c:1345: class_add: subsys=usb_device
sysfs_path=/sys/class/usb_device/usbdev3.15 dev=/dev/bus/usb/3/15
physdev=0x08160aa0
21:16:22.780 [I] classdev.c:1208: Add callouts completed
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_usbraw
21:16:22.781 [I] hald.c:106: Added device to GDL;
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_usbraw
21:16:22.781 [W] hald_dbus.c:89: No property info.capabilities on device
with
id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0
21:16:22.782 [W] hald_dbus.c:89: No property info.capabilities on device
with
id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0
21:16:27.624 [I] osspec.c:226: SEQNUM=913, ACTION=add, SUBSYSTEM=scsi,
DEVPATH=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0, DEVNAME=, IFINDEX=0
21:16:27.625 [I]
hotplug.c:168: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0 is a bus device (subsystem)
21:16:27.625 [I] physdev.c:1583: phys_add: subsys=scsi
sysfs_path=/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0, parent=0x08160ce0
21:16:27.625 [E] util.c:362: Cannot open
'/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0/model'
21:16:27.625 [E] util.c:362: Cannot open
'/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0/vendor'
21:16:27.625 [E] util.c:170: Cannot open
'/sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0/type'
21:16:27.625 [I]
physdev.c:675: /sys/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host6/target6:0:0/6:0:0:0/type -> -1082059736 (-> scsi.type)
21:16:27.632 [I] physdev.c:1508: Add callouts completed
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host_scsi_device_lun0
21:16:27.632 [I] hald.c:106: Added device to GDL;
udi=/org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host_scsi_device_lun0
21:16:27.633 [I] osspec.c:226: SEQNUM=914, ACTION=add,
SUBSYSTEM=scsi_disk, DEVPATH=/sys/class/scsi_disk/6:0:0:0, DEVNAME=,
IFINDEX=0
21:16:27.635 [I] hotplug.c:171: /sys/class/scsi_disk/6:0:0:0 is a class
device (subsystem)
21:16:27.635 [I] classdev.c:1345: class_add: subsys=scsi_disk
sysfs_path=/sys/class/scsi_disk/6:0:0:0 dev= physdev=0x08160ba0
21:16:27.635 [W] hald_dbus.c:89: No property info.capabilities on device
with
id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host_scsi_device_lun0
21:16:27.636 [W] hald_dbus.c:89: No property info.capabilities on device
with
id /org/freedesktop/Hal/devices/usb_device_d7d_1320_073908500B5A_if0_scsi_host_scsi_device_lun0
21:16:27.719 [I] osspec.c:226: SEQNUM=915, ACTION=add, SUBSYSTEM=block,
DEVPATH=/sys/block/sdb, DEVNAME=/dev/sdb, IFINDEX=0
21:16:27.720 [I] hotplug.c:174: /sys/block/sdb is a block device
(subsystem)
21:16:27.720 [I] blockdev.c:637: block_add: sysfs_path=/sys/block/sdb
dev=/dev/sdb is_part=0, parent=0x08160ba0
21:16:27.720 [I] blockdev.c:951: parent_bus is scsi
21:16:27.720 [W] blockdev.c:990: scsi.type is unknown
21:16:27.720 [W] blockdev.c:1151: Not adding device object
21:16:27.721 [I] osspec.c:226: SEQNUM=917, ACTION=add,
SUBSYSTEM=scsi_device, DEVPATH=/sys/class/scsi_device/6:0:0:0, DEVNAME=,
IFINDEX=0
21:16:27.721 [I] hotplug.c:171: /sys/class/scsi_device/6:0:0:0 is a
class device (subsystem)
21:16:27.721 [I] classdev.c:1345: class_add: subsys=scsi_device
sysfs_path=/sys/class/scsi_device/6:0:0:0 dev= physdev=0x08160ba0
21:16:27.722 [I] osspec.c:226: SEQNUM=916, ACTION=add, SUBSYSTEM=block,
DEVPATH=/sys/block/sdb/sdb1, DEVNAME=/dev/sdb1, IFINDEX=0
21:16:27.722 [I] hotplug.c:174: /sys/block/sdb/sdb1 is a block device
(subsystem)
21:16:27.722 [E] util.c:170: Cannot open '/sys/block/sdb/sdb1/range'
21:16:27.722 [I] blockdev.c:637: block_add:
sysfs_path=/sys/block/sdb/sdb1 dev=/dev/sdb1 is_part=1,
parent=0x00000000
21:16:27.722 [I] blockdev.c:739: Ignoring hotplug event - no parent
21:16:27.722 [W] blockdev.c:1151: Not adding device object


Some experimenting suggests hald-probe-storage isn't getting called when
HAL sees the memory stick... not sure how important this is?

Running HAL 0.5.8.1, udev-103 and Linux 2.6.18.1

Simon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/hal/attachments/20061110/1d7d2237/attachment-0001.pgp


More information about the hal mailing list