You are not logged in.
Pages: 1
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
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
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
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
In case you are running your window manager from console, make sure you have "exec ck-launch-session yourwm" in your .xinitrc.
Offline
Thaks for the replies. I'll try it when I get home.:cool:
Jim
Offline
Still getting error:
org.freedesktop.Hal.Device.PermissionDeniedByPolicy: hal-storage-mount-removable-extra-options no
TIA for any help.
Jim
Offline
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!
Jim
Last edited by col. panic (2009-04-12 19:17:27)
Offline
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
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
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
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
Pages: 1