You are not logged in.

#1 2009-07-08 07:07:14

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Arch running Xfce here.

The other day I tried to mount an external hard drive by just plugging it in.  It wouldn't work (obviously), so I Googled a solution and used it.  Problem is, now I can't remember what I did, and I'm having problems.  I think I may have messed with some conf files...

First, the floppy icon on my desktop won't go away unless I tweak a setting that would also stop external hard drives from appearing on the desktop (which I would like to keep).

Second, when I plug in my external hard drive, it no longer appears.

Third, HAL won't start.

I know that's not much to work with, but where can I start trying to figure out what went wrong and how to fix it?

Offline

#2 2009-07-08 07:20:11

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

can you post the error you get when you start hal?

sudo /etc/rc.d/hal restart

Offline

#3 2009-07-08 13:16:56

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

How is your hard drive connected?  eSATA, USB, FireWire, ...?

Can you perhaps find the solution you used in your browser history, or by Googling again?

Offline

#4 2009-07-08 21:37:19

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Trent wrote:

How is your hard drive connected?  eSATA, USB, FireWire, ...?

Can you perhaps find the solution you used in your browser history, or by Googling again?

USB.  Also, I can't access my history because now when I start Xfce, my keyboard and mouse aren't detected (keyboard still works before starting x though, so there's hope).  And I can't find it by Googling again.

sudo /etc/rc.d/hal restart

...leads to:

Stopping Hardware Abstraction Layer                                                   [FAIL]
Starting Hardware Abstraction Layer                                                   [FAIL]

I think I screwed up by messing with /etc/dbus-1/system.d/hal.conf and /etc/PolicyKit/PolicyKit.conf.  I want to post them, but nopaste was taken down and I don't have a GUI.  Are there any alternatives to nopaste in the repos?

Offline

#5 2009-07-08 23:07:23

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Okay, /etc/dbus-1/system.d/hal.conf is currently:

<!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. -->

  <!-- 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>

</busconfig>

My /etc/PolicyKit/PolicyKit.conf is empty apart from comments and the XML and DOCTYPE lines.

Offline

#6 2009-07-10 11:41:53

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Bump?  All I need (I think) is for someone to post their /etc/dbus-1/system.d/hal.conf and /etc/PolicyKit/PolicyKit.conf so I can get an idea of what works.  I'm stuck on my old Vista laptop until I fix this.

Offline

#7 2009-07-10 13:38:15

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Try to re-install the hal package which should put a hal.conf.pacnew or .pacsave in /etc, and use the default conf file.
My /etc/PolicyKit/PolicyKit.conf is also empty.

Offline

#8 2009-07-16 21:32:29

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Ok, managed to reinstall HAL, but I still can't access my hard drive.  I had a new error when trying to open the external hard drive by double-clicking the desktop icon: "org.freedesktop.hal.storage.mount-removable no <-- (action, result)."  I managed to get rid of that error by following the advice here: http://bbs.archlinux.org/viewtopic.php? … 05#p506905 and here: http://bbs.archlinux.org/viewtopic.php? … 38#p585338.  Now when I try to access the drive I get a permission denied error.  Trying to change the permissions so that my user account can access the drive (with chmod or sudo thunar) results in the error "Operation not supported" for every single file on the drive.  What am I missing?

/etc/dbus-1/system.d/hal.conf

<!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_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Properties" />

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>

    <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>

 <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>

</busconfig>

/etc/PolicyKit/PolicyKit.conf

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

<match action="org.freedesktop.hal.storage.mount-removable">
  <match user="root">
    <return result="yes"/>
  </match>
  <match user="harris">
    <return result="yes"/>
  </match>
</match>

<match action="org.freedesktop.hal.storage.mount-fixed">
  <match user="root">
    <return result="yes"/>
  </match>
  <match user="harris">
    <return result="yes"/>
  </match>
</match>

</config>

/usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">

<!--
Policy definitions for HAL's drives/media mechanims.

Copyright (c) 2007 David Zeuthen <david@fubar.dk>

HAL is licensed to you under your choice of the the Academic Free
License Version 2.1, or the GNU General Public License version 2. Some
individual source files may be under the GPL only. See COPYING for
details.
-->

<policyconfig>

  <action id="org.freedesktop.hal.storage.mount-fixed">
    <description>Mount file systems from internal drives.</description>
    <message>System policy prevents mounting internal media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.unmount-others">
    <description>Unmount file systems mounted by other users.</description>
    <message>System policy prevents unmounting media mounted by other users</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.eject">
    <description>Eject removable media.</description>
    <message>System policy prevents ejecting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
    <description>Set up decryption for encrypted fixed storage devices.</description>
    <message>System policy prevents accessing encrypted fixed media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep_always</allow_active>
    </defaults>
  </action>

  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
    <description>Set up decryption for encrypted removable storage devices.</description>
    <message>System policy prevents accessing encrypted removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

</policyconfig>

/etc/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

UUID=5dfdafa0-1268-4b5a-9901-0714929f8674 /boot ext2 defaults 0 1
UUID=cd8aac23-3f80-4320-afb6-3685c95ea357 /     ext4 defaults 0 1
UUID=dc8c641e-82d5-405d-8240-a3382c0176cb swap  swap defaults 0 0
UUID=f5546047-5431-4992-90bf-317251e4e8ad /home ext4 defaults 0 1

Offline

#9 2009-07-23 09:50:00

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Bump.

Offline

#10 2009-07-23 10:25:51

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

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Sirrah wrote:

Bump.

http://wiki.archlinux.org/index.php/For … te#Bumping

Anyway,does it work whn you manually try mounting your USB devices? Also did you check the "Still not working" section I added in Hal a few days ago?

Last edited by sHyLoCk (2009-07-23 10:27:02)


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

Offline

#11 2009-07-23 10:29:45

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

Try putting hal before dbus in your rc.conf and reboot the system...


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#12 2009-07-27 05:39:50

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

sHyLoCk wrote:
Sirrah wrote:

Bump.

http://wiki.archlinux.org/index.php/For … te#Bumping

Anyway,does it work whn you manually try mounting your USB devices? Also did you check the "Still not working" section I added in Hal a few days ago?

I'm not exactly short of extra information, though, am I?  And it has been a while.  Still, I should have said something more than just bump, so thanks for pointing out that rule.  As you can see in my previous post, I've already added the information from the "Still not working" section.  And sorry, but I don't know what you mean by manually mounting my USB device, because it automounts successfully, it's just the permissions that aren't working.

Putting hal before dbus doesn't make a difference either.

Offline

#13 2009-08-08 05:56:42

svejaka
Member
From: Bulgaria
Registered: 2009-01-21
Posts: 33

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

I have the same problem.Today i`ve made clean install on 200GB seagate IDE after that added sATA WD 250 GB (where my backup info is) from wich i wanted to copy my files.The problem is that the hdd is mounted but when i try to access it from dolpfin i get the error hal device permission denied by policy.
Last time i got this error i`ve tryed a lot of thing found on the Net and my system collapsed.
Thank you.

Offline

#14 2009-08-08 16:43:34

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: Well, I screwed up. HAL, floppy icon, and mounting problems...halp?

I had this problem too, have you tried what toad said:

toad wrote:

Try putting hal before dbus in your rc.conf and reboot the system...

Alternatively, you can post you rc.conf modules section...

Offline

Board footer

Powered by FluxBB