Hello,

please, excuse me for asking this way. I didn't want to file a bug, I did not find anything straight forward by searching various key words including the above. If you point me to other ways of getting the information I will certainly follow your advice.

If the computer is in two seat mode no user can access an USB storage device from his or her gnome session. In single seat mode everything works fine.

If you need more information I will produce it as fast as possible.

Recently, I installed a fresh Squeeze on new hardware. It is a two seat computer, i.e. there are two GPU and monitors. I configured gdm, not gdm3 as I didn't find any hint how to do it, to start up a lean dummy X server and two X servers for the respective seats. By login the gnome sessions are run. Almost everything works just fine besides [1]. Especially accessing CD or DVD works and fixed storage is obviously no matter.

The following holds even if just one user has an active gnome session. If I plug an USB storage device I see it in dmesg:

8< ----------------------------------------------------------------- >8
[ 47.868078] usb 1-2: new high speed USB device using ehci_hcd and address 3
[   48.003148] usb 1-2: New USB device found, idVendor=054c, idProduct=0243
[ 48.003157] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   48.003163] usb 1-2: Product: Storage Media
[   48.003168] usb 1-2: Manufacturer: Sony
[   48.003172] usb 1-2: SerialNumber: 8A10022328914
[   48.003364] usb 1-2: configuration #1 chosen from 1 choice
[   48.024947] Initializing USB Mass Storage driver...
[   48.025183] scsi10 : SCSI emulation for USB Mass Storage devices
[   48.025434] usbcore: registered new interface driver usb-storage
[   48.025441] USB Mass Storage support registered.
[   48.026183] usb-storage: device found at 3
[   48.026187] usb-storage: waiting for device to settle before scanning
[   53.024536] usb-storage: device scan complete
[ 54.221936] scsi 10:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
[   54.222830] sd 10:0:0:0: Attached scsi generic sg4 type 0
[ 54.228637] sd 10:0:0:0: [sdd] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[   54.229870] sd 10:0:0:0: [sdd] Write Protect is off
[   54.229879] sd 10:0:0:0: [sdd] Mode Sense: 43 00 00 00
[   54.229884] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[   54.234020] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[   54.234030]  sdd: sdd1
[   54.237371] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[   54.237381] sd 10:0:0:0: [sdd] Attached SCSI removable disk
8< ----------------------------------------------------------------- >8

It also appears in HAL, see attached excerpt from lshal, please.

But at the desktop I get the "Unable to mount location", "Not authorized" in its German equivalent, for the USB stick from the above dmesg: "Einhängen von 8,0GB Dateisystem nicht möglich" "Not Authorized". I am able to mount it as root:


8< ----------------------------------------------------------------- >8
root@douglas:~# mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /home type xfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
root@douglas:~# fdisk -l

Disk /dev/sda: 90.0 GB, 90028302336 bytes
255 heads, 63 sectors/track, 10945 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00077e88

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1095     8790016   82  Linux swap / Solaris
/dev/sda2   *        1095       10946    79126528   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000849f7

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1 1 121602 976760832 fd Linux raid autodetect

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009119a

    Device Boot      Start         End      Blocks   Id  System
/dev/sdc1 1 121602 976760832 fd Linux raid autodetect

Disk /dev/md0: 1000.2 GB, 1000201904128 bytes
2 heads, 4 sectors/track, 244189918 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/sdd: 8019 MB, 8019509248 bytes
175 heads, 32 sectors/track, 2796 cylinders
Units = cylinders of 5600 * 512 = 2867200 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

    Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1        2797     7831535+  83  Linux
root@douglas:~# mount /dev/sdd1 /mnt/
root@douglas:~# mount
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /home type xfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/dev/sdd1 on /mnt type xfs (rw)
root@douglas:~# ls /mnt/
Zugriff
root@douglas:~# ls /mnt/Zugriff/
EMF2010
ITQ-Workshop.7z
Kalender2011
...
8< ----------------------------------------------------------------- >8

Following the hint at [2] I created a /etc/polkit-1/PolicyKit.conf:

8< ----------------------------------------------------------------- >8
root@douglas:~# cat /etc/polkit-1/PolicyKit.conf
<config version="0.1">
  <match action="org.freedesktop.hal.storage.mount-removable">
    <match user="aumader">
      <return result="yes"/>
    </match>
  </match>
</config>

root@douglas:~#
8< ----------------------------------------------------------------- >8

After reboot it still didn't work. Anyway, "pkaction" gives nothing with "storage" or "removable" and with "mount":

org.freedesktop.udisks.filesystem-mount
org.freedesktop.udisks.filesystem-mount-system-internal
org.freedesktop.udisks.filesystem-unmount-others

The user "aumader" is in almost all groups:

8< ----------------------------------------------------------------- >8
root@douglas:~# id aumader
uid=1000(aumader) gid=1000(aumader) Gruppen=1000(aumader),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),109(bluetooth),110(lpadmin),112(fuse),115(scanner),119(powerdev)
root@douglas:~#
8< ----------------------------------------------------------------- >8

I hope you can help me configuring the system correctly!

Best regards,

Alexander.

[1]http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610958
[2]http://www.linuxquestions.org/questions/debian-26/thunar-stopped-to-mount-usb-storages-debian-squeeze-723251/
--
Alexander Mader <[email protected]>

Dumping 155 device(s) from the Global Device List:
-------------------------------------------------
...
udi = '/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914'
  info.linux.driver = 'usb'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_1d6b_2_0000_00_12_2'  
(string)
  info.product = 'MicroVault Flash Drive'  (string)
  info.subsystem = 'usb_device'  (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914'  
(string)
  info.vendor = 'Sony Corp.'  (string)
  linux.device_file = '/dev/bus/usb/001/003'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'usb'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2'  (string)
  usb_device.bus_number = 1  (0x1)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.configuration_value = 1  (0x1)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_revision_bcd = 256  (0x100)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.is_self_powered = false  (bool)
  usb_device.linux.device_number = 3  (0x3)  (int)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2' 
 (string)
  usb_device.max_power = 200  (0xc8)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.product = 'MicroVault Flash Drive'  (string)
  usb_device.product_id = 579  (0x243)  (int)
  usb_device.serial = '8A10022328914'  (string)
  usb_device.speed = 480.0 (480) (double)
  usb_device.vendor = 'Sony Corp.'  (string)
  usb_device.vendor_id = 1356  (0x54c)  (int)
  usb_device.version = 2.0 (2) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0'
  info.linux.driver = 'usb-storage'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914' 
 (string)
  info.product = 'USB Mass Storage Interface'  (string)
  info.subsystem = 'usb'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'usb'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0'  
(string)
  usb.bus_number = 1  (0x1)  (int)
  usb.can_wake_up = false  (bool)
  usb.configuration_value = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.device_revision_bcd = 256  (0x100)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.interface.class = 8  (0x8)  (int)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.protocol = 80  (0x50)  (int)
  usb.interface.subclass = 6  (0x6)  (int)
  usb.is_self_powered = false  (bool)
  usb.linux.device_number = 3  (0x3)  (int)
  usb.linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0'  (string)
  usb.max_power = 200  (0xc8)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.product = 'USB Mass Storage Interface'  (string)
  usb.product_id = 579  (0x243)  (int)
  usb.serial = '8A10022328914'  (string)
  usb.speed = 480.0 (480) (double)
  usb.vendor = 'Sony Corp.'  (string)
  usb.vendor_id = 1356  (0x54c)  (int)
  usb.version = 2.0 (2) (double)

udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0'
  info.capabilities = {'scsi_host'} (string list)
  info.category = 'scsi_host'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0'  (string)
  info.product = 'SCSI Host Adapter'  (string)
  info.subsystem = 'scsi_host'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0' 
 (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'scsi_host'  (string)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10'  (string)
  scsi_host.host = 10  (0xa)  (int)

udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0'
  info.linux.driver = 'sd'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0' 
 (string)
  info.product = 'SCSI Device'  (string)
  info.subsystem = 'scsi'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0'
  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'scsi'  (string)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0'
  (string)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 10  (0xa)  (int)
  scsi.lun = 0  (0x0)  (int)
  scsi.model = 'Storage Media'  (string)
  scsi.target = 0  (0x0)  (int)
  scsi.type = 'disk'  (string)
  scsi.vendor = 'Sony'  (string)

udi = 
'/org/freedesktop/Hal/devices/storage_serial_Sony_Storage_Media_8A10022328914_0_0'
  block.device = '/dev/sdd'  (string)
  block.is_volume = false  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 48  (0x30)  (int)
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_Sony_Storage_Media_8A10022328914_0_0'
  (string)
  info.addons = {'hald-addon-storage'} (string list)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string 
list)
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0'
  (string)
  info.product = 'Storage Media'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/storage_serial_Sony_Storage_Media_8A10022328914_0_0'
  (string)
  info.vendor = 'Sony'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0/block/sdd'
  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'usb'  (string)
  storage.drive_type = 'disk'  (string)
  storage.firmware_version = '0100'  (string)
  storage.hotpluggable = true  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'Storage Media'  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0'  (string)
  storage.partitioning_scheme = 'mbr'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 8019509248  (0x1de000000)  (uint64)
  storage.removable.support_async_notification = false  (bool)
  storage.requires_eject = false  (bool)
  storage.serial = 'Sony_Storage_Media_8A10022328914-0:0'  (string)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = 'Sony'  (string)

udi = 
'/org/freedesktop/Hal/devices/volume_uuid_c5851f52_f428_4a62_ac18_5921f884c4a8'
  block.device = '/dev/sdd1'  (string)
  block.is_volume = true  (bool)
  block.major = 8  (0x8)  (int)
  block.minor = 49  (0x31)  (int)
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_Sony_Storage_Media_8A10022328914_0_0'
  (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = 
'/org/freedesktop/Hal/devices/storage_serial_Sony_Storage_Media_8A10022328914_0_0'
  (string)
  info.product = 'Volume (xfs)'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/volume_uuid_c5851f52_f428_4a62_ac18_5921f884c4a8' 
 (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0/block/sdd/sdd1'
  (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)  (int)
  volume.fstype = 'xfs'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = ''  (string)
  volume.ignore = false  (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 = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 
'nodiratime', 'relatime', 'noexec', 'quiet', 'remount', 'exec'} (string list)
  volume.mount_point = ''  (string)
  volume.num_blocks = 15663071  (0xeeffdf)  (uint64)
  volume.partition.media_size = 8019509248  (0x1de000000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.start = 16384  (0x4000)  (uint64)
  volume.size = 8019492352  (0x1ddffbe00)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = 'c5851f52-f428-4a62-ac18-5921f884c4a8'  (string)

udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0_scsi_generic'
  info.capabilities = {'scsi_generic'} (string list)
  info.category = 'scsi_generic'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0'
  (string)
  info.product = 'SCSI Generic Interface'  (string)
  info.subsystem = 'scsi_generic'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host_0_scsi_device_lun0_scsi_generic'
  (string)
  linux.device_file = '/dev/sg4'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'scsi_generic'  (string)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10/target10:0:0/10:0:0:0/scsi_generic/sg4'
  (string)
  scsi_generic.device = '/dev/sg4'  (string)

udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host'
  info.capabilities = {'scsi_host'} (string list)
  info.category = 'scsi_host'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0'  (string)
  info.product = 'SCSI Host Adapter'  (string)
  info.subsystem = 'scsi_host'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/usb_device_54c_243_8A10022328914_if0_scsi_host'  
(string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'scsi_host'  (string)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:12.2/usb1/1-2/1-2:1.0/host10/scsi_host/host10' 
 (string)
  scsi_host.host = 10  (0xa)  (int)
...
Dumped 155 device(s) from the Global Device List.
------------------------------------------------

_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-utopia-maintainers

Reply via email to