29 November 2011

Debian Testing or Sid: KDE can't mount USB drives (Fix)

I've had my system stop allowing KDE to mount files. Why? UDisk and PolicyKit stuff, dunno. Here is the fix though.  To fix this, become root:
shell$ su -
edit the file at:
shell# vim /usr/share/polkit-1/actions/org.freedesktop.udisks.policy
and change the stanze which reads similar to this (note I had to remove all of the < due to blogger.com thinking I was entering code) :

action id="org.freedesktop.udisks.filesystem-mount">
    description>Mount a device /description>
    description xml:lang="da">Montér en enhed /description>
    description xml:lang="de">Gerät einhängen /description>
    message>Authentication is required to mount the device /message>
    message xml:lang="da">Autorisering er påkrævet for at montere et fil system /message>
    message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen /message>
    defaults>
      allow_any>no /allow_any>
      allow_inactive>no /allow_inactive>
      allow_active>no /allow_active>
    /defaults>
  /action>
    
  
to now read (note the bold parts, which are the changes):

action id="org.freedesktop.udisks.filesystem-mount">
    description>Mount a device /description>
    description xml:lang="da">Montér en enhed /description>
    description xml:lang="de">Gerät einhängen /description>
    message>Authentication is required to mount the device /message>
    message xml:lang="da">Autorisering er påkrævet for at montere et fil system /message>
    message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen /message>
    defaults>
      allow_any>yes /allow_any>
      allow_inactive>no /allow_inactive>
      allow_active>yes /allow_active>
    /defaults>
  /action>

If this helps you at al please let me know!  Note, the next installation of the udisks package will overwrite these changes.

0 comments: