You are not logged in.

#1 2012-05-20 12:15:08

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Unmount with udiskie through Thunar's GUI doesn't work

Hi all,

I'm not able to unmount devices through Thunar's GUI. I use udiskie for auto-mounting external devices and in this task it works perfectly.
I can unmount devices using the command udiskie-umount, but it returns me some warnings that I don't understand. I give you an example:

# udiskie-umount /media/BLACKBERRY/

** (process:1852): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:1852): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:1852): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
unmounted device /org/freedesktop/UDisks/devices/sdb1

I have these warnings also with other devices, such as the mp3 player, not only the BlackBerry.

My ~/.xinitrc is:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

## test for an existing bus daemon, just to be safe
         if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
             ## if not found, launch a new one
             eval `dbus-launch --sh-syntax --exit-with-session`
             echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRE$
         fi
# exec gnome-session
# exec startkde
# ...or the Window Manager of your choice

udiskie &
exec ck-launch-session startxfce4

I've created the file /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla

[Local Users]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks.*
 ResultAny=yes
 ResultInactive=no
 ResultActive=yes

and /etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pkla (see ArchWiki)

[Mount a system-internal device]
Identity=*
Action=org.freedesktop.udisks2.filesystem-mount-system-internal
ResultActive=yes

Last edited by I am Gianluca (2012-05-21 15:59:12)


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#2 2012-05-20 12:25:34

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: Unmount with udiskie through Thunar's GUI doesn't work

I solved editing the file /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla. Instead of using org.freedesktop.udisk.* I wrote org.freedesktop.udisk2.*

[Local Users]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks2.*
 ResultAny=yes
 ResultInactive=no
 ResultActive=yes

I don't know if this tweak can cause conflicts with other packages or security problems. I'm not an expert. I've tried this workaround only because I see that I have also installed udisks2, which should replace udisks. Seems that udiskie is using it.
If my supporsition is correct, the Udiskie Wiki page should be updated.

Is adviced to erase udisks and maintain only udisks2?

Last edited by I am Gianluca (2012-05-20 12:29:00)


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#3 2012-05-21 15:58:23

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: Unmount with udiskie through Thunar's GUI doesn't work

I noticed few minutes ago that udiskie mount my mp3 player not under /media but under /run/media/gianluca/.
Being in /run I can only read it, but not delete some files which are saved in my mp3 player.
I'm not sure if every devices is mounted under /run/media/gianluca/ or only the mp3 player.
Do you have any idea about why is this happen?


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#4 2012-05-21 17:47:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unmount with udiskie through Thunar's GUI doesn't work

Have you tried searching? There are quite a few threads about the /run move...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-05-21 18:56:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Unmount with udiskie through Thunar's GUI doesn't work

Are you aware that Thunar can handle automounting on its own i.e. without udiskie? Maybe you should try it that way - the Thunar wiki page has the details.

Offline

#6 2012-05-21 20:52:47

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: Unmount with udiskie through Thunar's GUI doesn't work

jasonwryan wrote:

Have you tried searching? There are quite a few threads about the /run move...

I've read something about, but didn't find a solution. I know that is related to udisks2.
Maybe I'm not so good on use the Search. Apologise. It won't be a flame, I have searched on the forum but didn't find a definitive solution.

tomk wrote:

Are you aware that Thunar can handle automounting on its own i.e. without udiskie? Maybe you should try it that way - the Thunar wiki page has the details.

Following your advice I deleted udiskie and tried to set up Thunar properly.
It seems to work fine, but I still can't erase a couple of files stored in my mp3 player (in the folder /run/media/root/device_name/).
When I try to do it returns the error 'Unable to create wastebasket info file. Read-only file system.'

Currently I don't have udiskie. I'm using only Thunar +  gvfs + polkit-gnome + udisks2.
I'm a member of the group 'storage'.
The only thing that I didn't do is launch 'dbus-launch' after 'ck-launch-session' on my ~/.xinitrc, as reported in the ArchWiki. This is because in the XFCE ArchWiki says:

ArchWiki XFCE page wrote:

There is still no need to start dbus-launch explicitly since startxfce4 takes care of doing that anyway.

Last edited by I am Gianluca (2012-05-21 21:04:17)


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

Board footer

Powered by FluxBB