You are not logged in.
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
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
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
Have you tried searching? There are quite a few threads about the /run move...
Offline
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
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.
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:
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