[Pkg-utopia-maintainers] HowTo eliminate "Unable to mount location", "Not authorized" on fresh multiseat squeeze

Mader, Alexander aumader at gmx.net
Sun Mar 27 10:51:02 UTC 2011


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 at 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 at 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 at douglas:~# mount /dev/sdd1 /mnt/
root at 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 at douglas:~# ls /mnt/
Zugriff
root at 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 at 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 at 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 at 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 at 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 <aumader at gmx.net>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Sony__lshal_meine.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20110327/7fde0208/attachment.txt>


More information about the Pkg-utopia-maintainers mailing list