pencechp n00b
Joined: 16 Jan 2005 Posts: 39 Location: Princeton, NJ
|
Posted: Tue Dec 13, 2005 2:33 am Post subject: HAL and /dev/sda |
|
|
So, I've got a USB key that shows up on /dev/sda and /dev/sda1. Trouble is, when it's hotplugged, HAL gets an entry for "/dev/sda", but just doesn't see "/dev/sda1"--so gnome-volume-manager (or anything else that uses HAL for that matter) won't automount the device, because HAL's not seeing the actual partition.
Before anybody asks:
- I'm a member of the plugdev group.
- HAL and DBUS are both being started on boot.
- gnome-volume-manager is being started in my Gnome session
dmesg output on hotplugging:
Code: |
usb 1-3: new high speed USB device using ehci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: Memorex Model: TD Classic 003C Rev: 1.04
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 2007040 512-byte hdwr sectors (1028 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2007040 512-byte hdwr sectors (1028 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
|
/var/log/messages has the dmesg output, and adds the line from hotplug:
Code: |
Dec 12 21:28:44 bertrand scsi.agent[28445]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host1/target1:0:0/1:0:0:0
|
gnome-volume manager reports the following:
Code: |
manager.c/1877: Device added: /org/freedesktop/Hal/devices/usb_device_8ec_8_0EC126501111E8A4
manager.c/1877: Device added: /org/freedesktop/Hal/devices/usb_device_8ec_8_0EC126501111E8A4_if0
manager.c/1877: Device added: /org/freedesktop/Hal/devices/usb_device_8ec_8_0EC126501111E8A4_if0_scsi_host
manager.c/1877: Device added: /org/freedesktop/Hal/devices/usb_device_8ec_8_0EC126501111E8A4_if0_scsi_host_scsi_device_lun0
manager.c/1877: Device added: /org/freedesktop/Hal/devices/storage_model_TD_Classic_003C
manager.c/1696: not a mountable volume: /org/freedesktop/Hal/devices/storage_model_TD_Classic_003C
|
Which makes sense, because that device in HAL has block.is_volume = FALSE.
lshal | grep sda reports just one device (sorry for the nano line truncations),
Code: |
udi = '/org/freedesktop/Hal/devices/storage_model_TD_Classic_003C'
info.addons = {'hald-addon-storage'} (string list)
storage.policy.should_mount = true (bool)
block.storage_device = '/org/freedesktop/Hal/devices/storage_model_TD_Classic$
info.udi = '/org/freedesktop/Hal/devices/storage_model_TD_Classic_003C' (str$
storage.requires_eject = false (bool)
storage.hotpluggable = true (bool)
info.capabilities = {'storage', 'block'} (string list)
info.category = 'storage' (string)
info.product = 'TD Classic 003C' (string)
info.vendor = 'Memorex' (string)
storage.removable = true (bool)
storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_8ec_8_0EC1$
storage.lun = 0 (0x0) (int)
storage.drive_type = 'disk' (string)
storage.vendor = 'Memorex' (string)
storage.model = 'TD Classic 003C' (string)
storage.automount_enabled_hint = true (bool)
storage.media_check_enabled = true (bool)
storage.no_partitions_hint = false (bool)
storage.bus = 'usb' (string)
block.is_volume = false (bool)
block.minor = 0 (0x0) (int)
block.major = 8 (0x8) (int)
block.device = '/dev/sda' (string)
linux.hotplug_type = 3 (0x3) (int)
info.parent = '/org/freedesktop/Hal/devices/usb_device_8ec_8_0EC126501111E8A4$
linux.sysfs_path_device = '/sys/block/sda' (string)
linux.sysfs_path = '/sys/block/sda' (string)
|
With no device for /dev/sda1, just this device for /dev/sda.
Does anybody know what's going on here? _________________ "This seems plainly absurd; but whoever wishes to become a philosopher must learn not to be frightened by absurdities." - Bertrand Russell, Problems of Philosophy |
|