Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2009 17:34:41 +0000
From:      dmaizey <dmaizey@mistral.co.uk>
To:        questions@FreeBSD.org
Subject:   possible Fault in HAL / Thunar will not mount USB Drives
Message-ID:  <20090321173441.09d3c8f8@seth>

next in thread | raw e-mail | index | archive | help
possible Fault in HAL

i have xfce4.6 installed and cannot auto mount any external usb device
>
> i have tried various policykit settings enclosed are the diagnositic 
> information gathered please can you tell me if this is a genuine
> fault or weather there si another way of doing this. i am trying to
> keep gnome elements off the system as much as possible
>
> when i plug the device in ttyv0 thunar reports

thunar-volman: No property info.capabilities on device with id
/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host.
 
thunar-volman: No property info.capabilities on device with id 
/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0.
 
thunar-volman: No property info.capabilities on device with id 
/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1.
 
thunar-volman: No property info.capabilities on device with id 
/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host_scsi_device_lun0.

>
> i have mounted from the command line without  problems
>
> please can someone help. I have tried the chat rooms and no one knows
> what the problem is and suggested that i report it as a bug in hal.
>
> the common thought is that most people refuse to use hal for the
> problmes associated with it like this many thanks in advance

Documents as follows 
/usr/local/etc/PolicyKit/PolicyKit.conf 
<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
  <define_admin_auth group="wheel"/>
 
  <match action="org.freedesktop.hal.storage.mount-fixed">
             <match user="bob">
               <return result="yes"/>
             </match>
 </match>
  <match action="org.freedesktop.hal.storage.mount-removable">
             <match user="bob">
               <return result="yes"/>
             </match>
 </match>
</config>
----------------------------------------------------------------------------------------
the lshal output relevant to the above thunar lines 
udi =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host'
  info.parent =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0'  (string)
  info.product = 'SCSI Host Adapter'  (string)
  info.subsystem = 'scsi_host'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host'  (string)
  scsi_host.host = 0  (0x0)  (int)

udi =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host_scsi_device_lun0'
  info.parent =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host'  (string)
  info.product = 'SCSI Device'  (string)
  info.subsystem = 'scsi'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host_scsi_device_lun0'  (string)
  info.vendor = 'ST98823A'  (string)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 0  (0x0)  (int)
  scsi.lun = 0  (0x0)  (int)
  scsi.model = 'S'  (string)
  scsi.target = 0  (0x0)  (int)
  scsi.type = 'disk'  (string)
  scsi.vendor = 'ST98823A'  (string)

udi = '/org/freedesktop/Hal/devices/storage_model_S'
  block.device = '/dev/da0'  (string)
  block.freebsd.cam_path = '0,0,0'  (string)
  block.is_volume = false  (bool)
  block.major = 0  (0x0)  (int)
  block.minor = 121  (0x79)  (int)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_S'  (string)
  freebsd.device_file = '/dev/da0'  (string)
  freebsd.driver = 'da'  (string)
  freebsd.unit = 0  (0x0)  (int)
  info.capabilities = {'block', 'storage'} (string list)
  info.category = 'storage'  (string)
  info.parent =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0_scsi_host_scsi_device_lun0'  (string)
  info.product = 'S'  (string)
  info.subsystem = 'block'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_S'  (string)
  info.vendor = 'ST98823A'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = false  (bool)
  storage.model = 'S'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device =
'/org/freedesktop/Hal/devices/usb_device_4fc_c15_ST98823AS_____________5PK3Z5S1_if0'  (string)
  storage.removable = false  (bool)
  storage.removable.support_async_notification = false  (bool)
  storage.requires_eject = false  (bool)
  storage.vendor = 'ST98823A'  (string)

udi = '/org/freedesktop/Hal/devices/volume_uuid_07D7_0408'
  block.device = '/dev/da0s1'  (string)
  block.is_volume = true  (bool)
  block.major = 0  (0x0)  (int)
  block.minor = 122  (0x7a)  (int)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_S'  (string)
  info.capabilities = {'block', 'volume'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_S'  (string)
  info.product = 'DellUtility'  (string)
  info.subsystem = 'block'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_07D7_0408'  (string)
  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)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount',
'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as',
'as'} (string list)
  volume.block_size = 512  (0x200)  (uint64)
  volume.fstype = 'vfat'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = 'FAT16'  (string)
  volume.ignore = true  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = 'DellUtility'  (string)
  volume.mount.valid_options = {'ro', 'noexec', 'noatime', 'longnames',
'shortnames', 'nowin95', '-u=', '-g=', '-m=', '-M=', '-L=', '-D=',
'large'} (string list)
  volume.mount_point = ''  (string)
  volume.num_blocks = 176652  (0x2b20c)  (uint64)
  volume.partition.media_size = 90445824  (0x5641800)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.type = '0xde'  (string)
  volume.size = 90445824  (0x5641800)  (uint64)
  volume.uuid = '07D7-0408'  (string)

-----------------------------------------------------------------------------------
Dmesg

mass0: <Sunplus Technology Inc. USB to Serial-ATA bridge, class 0/0,
rev 2.00/c6.83, addr 2> on uhub4
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST98823A S > Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C)
GEOM_LABEL: Label for provider da0s2 is ntfs/momentus .

...............................................................................
/etc/rc.conf  

cupsd_enable="YES"
hostname="xxx.xxx.xxx.xxx"
ifconfig_bge0="DHCP"
keymap="uk.iso"
linux_enable="YES"
moused_enable="YES"
amd_enable="YES"
nfs_client_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
sshd_enable="YES"
sound_enable="YES"
mixer_enable="YES"
dbus_enable="YES"
hald_enable="YES"
portmap_enable="YES"
# polkitd_enable="YES"

----------------------------------------------------------------------------

i cannot seem to mount this drive automatically 
i have Thunar-volman port isntalled 
when the "browse when disk is inserterd " is ticked i get splashed with
every mount point except the one i want   
/var /tmp / /usr + my local drives that are partitioned on the hard
disk.  
but not the external usb drive.

any help will be appreciated 
i am trying not to install GNOME where possible as i know that GNOME
mounts volumes differently.

many thanks in advance 

 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090321173441.09d3c8f8>