[Bug 297338] Re: Sugar does not see/mount USB Flash drive

mungewell simon at mungewell.org
Thu Nov 13 05:58:03 GMT 2008


UID 500/1000 issue spun off as seperate bug
https://bugs.launchpad.net/ubuntu/+source/sugar-journal-activity/+bug/297479


Sandisk HAL listing does not include the correct HAL properties, and thus fails the test in /usr/share/activities/Journal.activity/volumesmanager.py
--
        # Ignore volumes without a filesystem.
        if device.GetProperty('volume.fsusage') != 'filesystem':
            return False
--

hal-device listing for Sandisk (USB-ID 0x0781:5406)
--
6: udi = '/org/freedesktop/Hal/devices/usb_device_781_5406_0000060423032262'
  usb_device.vendor = 'SanDisk Corp.'  (string)
  usb_device.bus_number = 1  (0x1)  (int)
  usb_device.product = 'Cruzer Micro 1/4GB Flash Drive'  (string)
  linux.device_file = '/dev/bus/usb/001/002'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1'  (string)
  info.subsystem = 'usb_device'  (string)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1' 
 (string)
  usb_device.device_revision_bcd = 16  (0x10)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_1_0000_00_1d_0'  (
string)
  usb_device.configuration_value = 1  (0x1)  (int)
  info.vendor = 'SanDisk Corp.'  (string)
  info.product = 'Cruzer Micro 1/4GB Flash Drive'  (string)
  usb_device.max_power = 100  (0x64)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_781_5406_0000060423032262'
  (string)
  info.linux.driver = 'usb'  (string)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.linux.device_number = 2  (0x2)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.serial = '0000060423032262'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.speed = 12  (double)
  linux.subsystem = 'usb'  (string)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.version = 2  (double)
  usb_device.vendor_id = 1921  (0x781)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.product_id = 21510  (0x5406)  (int)
  usb_device.can_wake_up = false  (bool)
--

By contrast the LEXAR device has it
--
7: udi = '/org/freedesktop/Hal/devices/volume_label_LEXAR'
  linux.hotplug_type = 3  (0x3)  (int)
  info.product = 'LEXAR'  (string)
  info.capabilities = { 'volume', 'block', 'access_control' } (string list)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JD_FIREFLY_106A6612145843130507_0_0'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_label_LEXAR'  (string)
  volume.fstype = 'vfat'  (string)
  access_control.file = '/dev/sdb1'  (string)
  volume.fsusage = 'filesystem'  (string)
  access_control.type = 'removable-block'  (string)
  volume.fsversion = 'FAT16'  (string)
  info.callouts.add = { 'hal-acl-tool --add-device' } (string list)
  volume.uuid = ''  (string)
  info.callouts.remove = { 'hal-acl-tool --remove-device' } (string list)
  volume.label = 'LEXAR'  (string)
  volume.mount_point = '/media/LEXAR'  (string)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.linux.is_device_mapper = false  (bool)
  volume.is_disc = false  (bool)
  volume.is_partition = true  (bool)
  volume.partition.number = 1  (0x1)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.num_blocks = 1981408  (0x1e3be0)  (uint64)
  volume.size = 1014480896  (0x3c77c000)  (uint64)
  block.device = '/dev/sdb1'  (string)
  block.major = 8  (0x8)  (int)
  info.category = 'volume'  (string)
  volume.partition.start = 16384  (0x4000)  (uint64)
  block.minor = 17  (0x11)  (int)
  volume.partition.media_size = 1014497280  (0x3c780000)  (uint64)
  block.is_volume = true  (bool)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.type = '0x04'  (string)
  volume.partition.label = ''  (string)
  linux.sysfs_path = '/sys/block/sdb/sdb1'  (string)
  volume.partition.uuid = ''  (string)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JD_FIREFLY_106A6612145843130507_0_0'  (string)
  volume.partition.flags = { 'boot' } (string list)
  volume.ignore = false  (bool)
  storage.model = ''  (string)
  org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } (string list)
  info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } (string list)
  org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject' } (string list)
  volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush' } (string list)
  volume.unmount.valid_options = { 'lazy' } (string list)
--

Not sure whether this is a bug with sugar-journal-activity or with the HAL fdi's
Simon.

-- 
Sugar does not see/mount USB Flash drive
https://bugs.launchpad.net/bugs/297338
You received this bug notification because you are a member of Sugar
Team, which is subscribed to sugar in ubuntu.

Status in “sugar” source package in Ubuntu: New

Bug description:
Binary package hint: sugar

When inserted a USB Flash key is not seen by Sugar/Sugar-Emulator (it should show up the bottom bar of Journal, see http://en.flossmanuals.net/Sugar/BackingUp), instead the USB Flash drive is mounted by the underlying OS.

At a (wild) guess there will need to be some HAL tinkering to ensure that Sugar gets notified and the underlying OS does not.
Mungewell.



More information about the Ubuntu-sugarteam mailing list