You are not logged in.

#1 2009-12-15 03:06:13

TomB17
Member
Registered: 2009-09-02
Posts: 102

Can't mount USB flash or external disk

For the last couple of weeks, the only way I can get anything to mount is by putting it in the fstab.  It used to work when the OS would detect the media.

Of course, I'm running hal and dbus.

I would consider it a favour if someone would point me in the direction of a howto, thread, documentation, or whatever on how to set this up so I can insert a USB key and have the OS detect and mount it.

I'm running KDE 4.3.4 and it discovers the device and asks if I wish to open it with dolphin (digicam, or no action).  If I select dolphin, I get an error.


An error occurred while accessing 'USB-KEY', the system responded: org.freedesktop,DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.267" (uid=1000 pid=16082 comm="dolphin) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=8014 comm="/usr/sbin/hald))

Again, I would appreciate it if someone would steer me in the right direction.  This must be documented somewhere.  Unfortunately, I have been unable to find anything relevant in this forum or the wiki.

Offline

#2 2009-12-15 03:38:07

Cheifchimp
Member
From: Queensland Australia
Registered: 2009-05-07
Posts: 69

Re: Can't mount USB flash or external disk

TomB17 wrote:

For the last couple of weeks, the only way I can get anything to mount is by putting it in the fstab.  It used to work when the OS would detect the media.

Of course, I'm running hal and dbus.

I would consider it a favour if someone would point me in the direction of a howto, thread, documentation, or whatever on how to set this up so I can insert a USB key and have the OS detect and mount it.

I'm running KDE 4.3.4 and it discovers the device and asks if I wish to open it with dolphin (digicam, or no action).  If I select dolphin, I get an error.


An error occurred while accessing 'USB-KEY', the system responded: org.freedesktop,DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.267" (uid=1000 pid=16082 comm="dolphin) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=8014 comm="/usr/sbin/hald))

Again, I would appreciate it if someone would steer me in the right direction.  This must be documented somewhere.  Unfortunately, I have been unable to find anything relevant in this forum or the wiki.

I'm in the same boat, everytime hal is updated it breaks things and provides more maliciously cryptic and meaningless error messages.

Rejected send message, 1 matched rules; type="method_call", sender=":1.35" (uid=1000 pid=31749 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1377 comm="/usr/sbin/hald)).

HELP

Offline

#3 2009-12-15 04:12:29

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Can't mount USB flash or external disk

Perhaps this post will have helpful data:

http://bbs.archlinux.org/viewtopic.php?id=59986


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2009-12-17 19:44:55

TomB17
Member
Registered: 2009-09-02
Posts: 102

Re: Can't mount USB flash or external disk

Thank you, lilsirecho.  I'll test that solution when I get home.  cool

Offline

#5 2009-12-18 15:03:42

qiuwei
Member
Registered: 2009-12-18
Posts: 245

Re: Can't mount USB flash or external disk

I also met this problem, and I've tried lilsirecho's method but it didn't work.
I even cannot startx using the method above.
I've tried the solution metioned in the wiki but all of them failed.

PS: I didn't get envolved in this until I changed all of the mounted filesystem's owner from root:root to myself:users.
And the filesystem is ntfs.

Offline

#6 2009-12-28 18:50:33

bcogrel
Member
Registered: 2009-12-28
Posts: 1

Re: Can't mount USB flash or external disk

Hi,

I had the same message for few days with a new installation of Arch on E17 and KDE, and I've just fixed it by launching dbus before hal in the "DAEMONS" line in the /etc/rc.conf file.

Offline

#7 2009-12-28 19:00:50

Cr0k
Member
Registered: 2009-10-16
Posts: 174

Re: Can't mount USB flash or external disk

Really ?
Just need to put hal in rc.conf, it launches dbus automatically.

Offline

#8 2010-03-10 08:41:30

arch1_user
Member
Registered: 2010-03-10
Posts: 17

Re: Can't mount USB flash or external disk

Try editing /etc/dbus-1/system.d/hal.conf to match similar to this & substitute your username.

Automount in Dolphin without FSTAB entry:

Look for following, and ad entry for USERNAME:

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

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



Add the following after root entry:

</policy>

  <!-- well,...and USERNAME too -->
  <policy user="arch1">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.DockStation"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LightSensor"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>

  </policy>

</busconfig>

Offline

#9 2010-03-11 20:33:19

Moose9999
Member
Registered: 2010-03-09
Posts: 32

Re: Can't mount USB flash or external disk

This looks like a permission problem to me.  One of the error messages said "AccessDenied: Rejected send message, etc".  By default users don't have access to usb drives, there is a group they need to be in if I remember correctly.  Check ls -l on the various filesystems that you changed ownership on and see if they have the correct rwx privlages.


"The beautiful thing about learning is nobody can take it away from you."
B.B. King

Offline

#10 2010-03-13 09:40:31

arch1_user
Member
Registered: 2010-03-10
Posts: 17

Re: Can't mount USB flash or external disk

I tried to add my user to all groups, and nothing. I know in Gentoo it is Plugdev group for USB, but no such group in Arch. By using the method I posted above all items found on system are mounted. NTFS, CD/ DVD, USB. Worked for me smile

Offline

#11 2010-03-14 19:43:27

Moose9999
Member
Registered: 2010-03-09
Posts: 32

Re: Can't mount USB flash or external disk

have checked ls -l for rw priveleges?  if you don't have them try

sudo chmod +rw <path>

for the files in question.  if you add the flag -R to chmod it will go through all the files/dirs starting where you specify.

Last edited by Moose9999 (2010-03-14 19:44:37)


"The beautiful thing about learning is nobody can take it away from you."
B.B. King

Offline

#12 2010-04-03 17:29:59

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Can't mount USB flash or external disk

Command line utility to mount usb/stick drives from normal user account (maybe not as neat as GUI automount)

pacman -S pmount

pmount only allows stick drives to be mounted under /media

pmount /dev/sdx (might have to guess) /media/xxxx

when you're done or forgot:

pumount /dev... or /media...

Last edited by nomorewindows (2010-04-03 17:32:13)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#13 2010-05-20 05:27:33

shauder
Member
Registered: 2010-05-18
Posts: 21

Re: Can't mount USB flash or external disk

This worked for me thanks! Although, I am wondering why is this? I understand that it is giving the right user permissions to mount and access the drive but is this a work around for something I may have forgotten?  I don't want to "jimmy rig" it.

arch1_user wrote:

Try editing /etc/dbus-1/system.d/hal.conf to match similar to this & substitute your username.

Automount in Dolphin without FSTAB entry:

Look for following, and ad entry for USERNAME:

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

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



Add the following after root entry:

</policy>

  <!-- well,...and USERNAME too -->
  <policy user="arch1">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.DockStation"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LightSensor"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>

  </policy>

</busconfig>

Offline

Board footer

Powered by FluxBB