You are not logged in.

#1 2010-02-14 10:27:59

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Cant access usb-devices anymore

Hey guys,

it is strange, but i cannot automount or access usb-devices anymore.

I am in the storage-group

id says:

uid=1000(philipp) gid=100(users) Gruppen=100(users),7(lp),10(wheel),82(hal),90(network),91(video),92(audio),93(optical),94(floppy),95(storage)

When i open nautilus or pcmanfm as root i can browse the data on the device, but as normal user i
can't

Can somebody help me?

Last edited by Svlad Cjelli (2010-02-14 10:29:00)

Offline

#2 2010-02-14 14:54:42

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Cant access usb-devices anymore

What does your fstab look like, do you get any errors when you mount you drives? You need to give us more information.


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2010-02-14 18:10:45

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Cant access usb-devices anymore

Ok,

so this is my fstab:

# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda2 / ext4 defaults,noatime 0 0
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /media/Data ntfs-3g auto,users,rw,noatime 0 0

But i never managed mounting usb-devices via fstab.
I never had any problems until now...



The error-message i get when i plug in the usb-device is the following:

auswahl_004_bSO11w.jpg

If i then want to access the device via pcmanfm the next error pops up:

auswahl_005_bcgj7d.jpg


Do you

Offline

#4 2010-02-14 18:12:41

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Cant access usb-devices anymore

Check the HAL section in wiki .


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#5 2010-02-14 18:33:20

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Cant access usb-devices anymore

What happens if you manually mount the drive (with the entry you have in fstab)?


Website - Blog - arch-home
Arch User since March 2005

Offline

#6 2010-02-14 18:40:29

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Cant access usb-devices anymore

sHyLoCk wrote:

Check the HAL section in wiki .

Ok i did, and i edited some .fdi-files from the troubleshooting-section..

Nothing happened. I CAN browse the files if i open a file-manager as root, but i cant as normal user.

I dont have any line regarding my usb-device in fstab. And i do not want to mount them via fstab. I just want to have plug'n'play :-(

Offline

#7 2010-02-14 18:43:16

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Cant access usb-devices anymore

Well try to manually mount it first. What file-system is it using?


Website - Blog - arch-home
Arch User since March 2005

Offline

#8 2010-02-14 18:55:18

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Cant access usb-devices anymore

It uses fat16...

I think it is mounted when i plug in the device... i simply cannot browse it because i am "not authorized".

[philipp@winchester ~]$ sudo fdisk -l

Platte /dev/sda: 160.0 GByte, 160041885696 Byte
255 Köpfe, 63 Sektoren/Spur, 19457 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0x10a919b9

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        3881    31174101    7  HPFS/NTFS
/dev/sda2            3882        5098     9775552+  83  Linux
/dev/sda3            5099        5489     3140707+  82  Linux Swap / Solaris
/dev/sda4            5490       19457   112197960    7  HPFS/NTFS

Platte /dev/sdb: 2004 MByte, 2004877312 Byte
129 Köpfe, 32 Sektoren/Spur, 948 Zylinder
Einheiten = Zylinder von 4128 × 512 = 2113536 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1         949     1957872    6  FAT16
Partition 1 hat unterschiedliche phys./log. Enden:
     phys=(956, 128, 32) logisch=(948, 75, 32)

My device is /dev/sdb

Offline

#9 2010-02-14 19:30:45

Phitherek_
Member
From: Poland
Registered: 2008-11-08
Posts: 36
Website

Re: Cant access usb-devices anymore

I had the same problem some time ago...
It is solved on Polish Arch Linux forum http://forum.archlinux.pl/viewtopic.php?id=4409
I think google translator will help.
If not, there is second post by user "hash", and the first code is that, which you must add to /etc/dbus-1/system.d/hal.conf
Also, edit /etc/group and add yourself to "plugdev" group.
For me it worked.

Last edited by Phitherek_ (2010-02-14 19:31:36)


Posted by Phitherek_

Offline

#10 2010-02-14 20:45:59

oGRE2080
Member
From: UKRAINE-NY
Registered: 2009-10-09
Posts: 63

Re: Cant access usb-devices anymore

It works for real !!! Tei raz wshustko okei ))
Here is full hal.conf and make sure that you are in "plugdev:x:46:USER"

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user hal can own the HAL service -->
  <policy user="hal">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_interface="org.freedesktop.Hal.Device"/>
    <allow receive_interface="org.freedesktop.Hal.Manager"
           receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device"
           receive_sender="org.freedesktop.Hal"/>

    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement"
       receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel"
       receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.Volume"
       receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto"
       receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Default policy for the exported interfaces -->
  <policy context="default">
    <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
    <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <policy group="power">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
  </policy>

  <policy group="storage">
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <policy group="plugdev">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- You can change this to a more suitable user, or make per-group -->
  <policy user="0">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
    <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

</busconfig>

Phitherek_
Dzenkyu,and sorry for copying your post. but I need to save this page with full info ))

Offline

#11 2010-02-15 14:36:05

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Cant access usb-devices anymore

Hi,

that does not work for me sad

I edited the hal.conf, but i cannot add my user to plugdev, because plugdev does not exist big_smile

[root@winchester ~]# gpasswd -a philipp plugdev
gpasswd: group 'plugdev' does not exist in /etc/group

What can i do?

EDIT:
I added a group via

groupadd plugdev

and made myself a member...

I still can't access my usb-device :-(

Last edited by Svlad Cjelli (2010-02-15 15:01:26)

Offline

#12 2010-02-15 15:16:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Cant access usb-devices anymore

I asume that you are using startx or slim?

change the line that starts your wm/de to  "exec ck-launch-session yourwm"


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#13 2010-02-15 16:17:29

Svlad Cjelli
Member
From: dusk till dawn
Registered: 2008-10-21
Posts: 99

Re: Cant access usb-devices anymore

Mr.Elendig wrote:

I asume that you are using startx or slim?

change the line that starts your wm/de to  "exec ck-launch-session yourwm"

HOORRAAYY! Thats it. I just switched from gdm to slim.

What does this "ck-lauch" mean?


Thank you so much Mr.Elendig!


greets

Offline

#14 2010-02-16 03:40:59

oGRE2080
Member
From: UKRAINE-NY
Registered: 2009-10-09
Posts: 63

Re: Cant access usb-devices anymore

Svlad Cjelli wrote:

I edited the hal.conf, but i cannot add my user to plugdev, because plugdev does not exist big_smile

add it mannualy by hands

Offline

#15 2010-05-30 22:18:44

oGRE2080
Member
From: UKRAINE-NY
Registered: 2009-10-09
Posts: 63

Re: Cant access usb-devices anymore

I don't know why, I installed arch on laptop again, and the issue is not working for me, but I did all steps
1. added uses to plugdev group
2, changed hal.conf file
3. starting slim like it saids

hunar is connecting USB 1 tb drive but don't have write permission o_O
but I still can write on small 8 gig flash....
can someone help ?

Last edited by oGRE2080 (2010-05-30 22:37:00)

Offline

#16 2010-08-22 00:42:25

Taoist
Member
Registered: 2010-08-16
Posts: 13

Re: Cant access usb-devices anymore

Hello,
Make sure you have dbus enabled as a daemon in nano /etc/rc.conf....that will fix your problem the right way I believe. For the GDM, that is:)

Last edited by Taoist (2010-08-22 00:44:12)

Offline

#17 2010-08-22 01:30:24

kpbotbot
Member
From: Philippines
Registered: 2010-08-02
Posts: 93
Website

Re: Cant access usb-devices anymore

I just followed the "automount with udev" thingy from the wiki:
http://wiki.archlinux.org/index.php/Ude … if_present and commented out my usb entries on my fstab smile It just works for me.


Sex is not the answer.

Sex is the question, and Yes is the answer.

Offline

Board footer

Powered by FluxBB