You are not logged in.

#1 2009-04-08 00:03:04

col. panic
Member
Registered: 2009-01-18
Posts: 15

Automount USB stick

Hello,

I can't get a USB stick to automount.  I tried the solution in the wiki, but I can't write to /etc/hal/fdi/policy/preferences.fdi, it says it's a directory...

Thanks in advance for any help.

Jim

Offline

#2 2009-04-08 02:27:12

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Automount USB stick

As root

dmesg | grep sd

Then pick the most likely candidate - probably sdb1

mkdir /media/usb
mount /dev/sdb1 /media/usb

etc etc ad nauseatum - and the next time plueeeze do a search on previous topics


[edit]
ooops sorry - you wanted 'atomounting'.
Still - do a search on previous topics, I believe it is spelled out quite well.
[/edit]

Last edited by perbh (2009-04-08 02:28:59)

Offline

#3 2009-04-08 12:31:19

col. panic
Member
Registered: 2009-01-18
Posts: 15

Re: Automount USB stick

My issue is not turning up in a search:

I tried the solution in the wiki, but I can't write to /etc/hal/fdi/policy/preferences.fdi, it says it's a directory...

USB sticks wrok perfectly out of the box in Sidux.

Thanks anyway.

Jim

Offline

#4 2009-04-08 12:37:07

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Automount USB stick

If /etc/hal/fdi/policy/preferences.fdi is a directory, something went wrong. Just double check with:

ls -ld  /etc/hal/fdi/policy/preferences.fdi
ls -l /etc/hal/fdi/policy/preferences.fdi

If it is a directory and is empty you can remove it:

rmdir /etc/hal/fdi/policy/preferences.fdi

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#5 2009-04-08 12:40:20

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: Automount USB stick

In case you are running your window manager from console, make sure you have "exec ck-launch-session yourwm" in your .xinitrc.

Offline

#6 2009-04-08 18:26:42

col. panic
Member
Registered: 2009-01-18
Posts: 15

Re: Automount USB stick

Thaks for the replies.  I'll try it when I get home.:cool:

Jim

Offline

#7 2009-04-12 13:57:09

col. panic
Member
Registered: 2009-01-18
Posts: 15

Re: Automount USB stick

Still getting error:

org.freedesktop.Hal.Device.PermissionDeniedByPolicy: hal-storage-mount-removable-extra-options no

TIA for any help.

Jim

Offline

#8 2009-04-12 19:17:09

col. panic
Member
Registered: 2009-01-18
Posts: 15

Re: Automount USB stick

BTW, I followed the instructions in the wiki about HAL and permission denied, and I still get the error, so please don't yell at me to try it! tongue

Jim

Last edited by col. panic (2009-04-12 19:17:27)

Offline

#9 2009-04-12 21:13:54

jleach
Member
Registered: 2008-07-24
Posts: 27

Re: Automount USB stick

Really quick (and dirty) workaround is to add this to /etc/PolicyKit/PolicyKit.conf:

<match action="org.freedesktop.hal.storage.*">
    <return result="yes"/>
</match>

Offline

#10 2009-04-14 07:31:11

ndgrahams
Member
Registered: 2008-11-05
Posts: 9

Re: Automount USB stick

I wonder if it could be a groups permissions problem. Are you a member of the, I think, storage group? You can check in /etc/group, e.g. with

less /etc/group |grep storage

or add yourself to the group with (as root)

gpasswd -a <username> storage

I don't know if that's the problem, but perhaps.

Offline

#11 2009-04-14 13:53:11

windtalker
Member
Registered: 2008-03-17
Posts: 220

Re: Automount USB stick

I had trouble with automunting on cd/dvd and usb stick also.
None of the fixes worked from the Arch wiki or forum.
I found the fix in the Chakra forum.

in /etc/PolicyKit/PolicyKit.conf I placed:

<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
    <return result="yes" />
  </match>
  <match action="org.freedesktop.hal.storage.eject-removable">
    <return result="yes" />
  </match>
  <match action="org.freedesktop.hal.storage.mount-fixed">
    <return result="yes"/>
  </match>
  <match action="hal-storage-mount-fixed-extra-options">
    <return result="yes"/>
  </match>
  <match action="hal-storage-mount-removable-extra-options">
    <return result="yes"/>
  </match>
</config>

I found similar here in the Arch forum, but not similar enough that it worked for me.

Last edited by windtalker (2009-04-14 13:53:33)

Offline

#12 2009-04-14 14:13:33

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Automount USB stick

i had the same problem.

sudo polkit-action --set-defaults-active org.freedesktop.hal.storage.mount-removable yes

solved the problem.

you can revoke this by

sudo polkit-action --reset-defaults org.freedesktop.hal.storage.mount-removable

Last edited by hcjl (2009-04-14 14:31:49)

Offline

Board footer

Powered by FluxBB