You are not logged in.

#1 2012-04-29 19:27:21

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

udiskie+consolekit and still unauthorized access with xfce4

One of the things on my todo list is automounting file system

I have got a little stuck trying to do this. I would like to use udiskie. I read on Arch wiki about permissions and necessity
of installing consolekit.

https://wiki.archlinux.org/index.php/Udiskie

I've done that and currently my last line of .xinitrc is

exec ck-launch-session udiskie & startxfce4

Unfortunately when I run this my log files show only

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

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

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

What am I doing wrong? I have a feeling that I am missing something important. Have you been able to run xfce
together with udiskie. Any hints or assistance will be greatly appreciated. By the way, are there any
better alternatives?


CD Rom works for me but no storage devices

Last edited by Chr|s (2012-04-29 20:19:40)

Offline

#2 2012-04-29 21:03:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: udiskie+consolekit and still unauthorized access with xfce4

startxfce4 has to be started with console kit.  That will not happen with the line you posted.

Try these lines in your .xinitrc

udiskie &
exec ck-launch-session startxfce4

Last edited by Trilby (2012-04-29 21:04:31)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2012-04-29 21:47:07

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

Trilby wrote:

startxfce4 has to be started with console kit.  That will not happen with the line you posted.

Try these lines in your .xinitrc

udiskie &
exec ck-launch-session startxfce4

Alright, I have changed that and I am still getting the same errors.

In Thunar..

I see the devices, but unable to access them says "Not authorized to perform this operation"

Offline

#4 2012-04-29 22:00:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: udiskie+consolekit and still unauthorized access with xfce4

Did you create /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla ? and/or try the other method of launching the wm?

I don't use xfce or udiskie, so this is about all I could suggest.

A possible alternative is pmount.  It doesn't automount, but it does make mounting media so easy and config-free that I went with that and ditched console-kit and friends.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2012-04-29 22:16:15

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

Trilby wrote:

Did you create /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla ? and/or try the other method of launching the wm?

I don't use xfce or udiskie, so this is about all I could suggest.

A possible alternative is pmount.  It doesn't automount, but it does make mounting media so easy and config-free that I went with that and ditched console-kit and friends.

Yeah I created the /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla rule

What is the other way to start the wm? I want to be able to start it from command line using xinitrc. I may have to look into pmount. But id like to figure out why this isn't working for some reason.

Offline

#6 2012-04-29 22:37:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: udiskie+consolekit and still unauthorized access with xfce4

The wiki page suggests having udiskie and the wm run under ck

exec ck-launch-session bash -c "udiskie & startxfce4"

Perhaps this is what you were going for at first, but without the 'bash' and the quotes around udiskie and startxfce4 you were getting something very different.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#7 2012-04-29 22:50:39

xsmile
Member
Registered: 2012-03-31
Posts: 32

Re: udiskie+consolekit and still unauthorized access with xfce4

This post should help you.
It seems udisks was replaced by udisks2, therefore you need to change the .pkla accordingly.

Offline

#8 2012-04-29 23:08:26

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

Trilby wrote:

The wiki page suggests having udiskie and the wm run under ck

exec ck-launch-session bash -c "udiskie & startxfce4"

Perhaps this is what you were going for at first, but without the 'bash' and the quotes around udiskie and startxfce4 you were getting something very different.

xsmile wrote:

This post should help you.
It seems udisks was replaced by udisks2, therefore you need to change the .pkla accordingly.

Thanks guys. I tried both and still unable to access my other internal drive. Just my cdrom drive and a flash drive I insert

Offline

#9 2012-04-29 23:21:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: udiskie+consolekit and still unauthorized access with xfce4

Internal drive?

Oops, you may be trying to figure out the screwdriver when you really need a hammer.  I'm not familiar with udisks/ie, but other media mounting tools are only for external media.  They're the wrong tool for the job.

If this is another internal drive, is there a reason not to have an fstab entry for it?

Last edited by Trilby (2012-04-29 23:21:36)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#10 2012-04-29 23:24:42

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

its a files drive I would like to share between windows/arch. I dual boot

Offline

#11 2012-04-29 23:32:55

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: udiskie+consolekit and still unauthorized access with xfce4

If you don't mind switching to devmon, I believe it can mount internal drives using its "--internal" flag.

Offline

#12 2012-04-29 23:39:58

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

meh...just want this to work so I can access my Files drive. Seems like I am having more issues with this than anything.

Offline

#13 2012-04-29 23:49:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,321
Website

Re: udiskie+consolekit and still unauthorized access with xfce4

I'd recommend going with an fstab entry and side stepping all this hassle given that this is an internal drive.  Be sure to read the section on FAT32 if that applies.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#14 2012-04-30 02:06:45

Chr|s
Member
From: FL
Registered: 2012-01-04
Posts: 46

Re: udiskie+consolekit and still unauthorized access with xfce4

Alright made an entry, im pretty sure I did it right. This is my fstab with the added drive at the bottom:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
LABEL=boot /boot ext2 defaults 0 1
LABEL=home /home ext4 defaults 0 1
LABEL=root / ext4 defaults 0 1
LABEL=Files none ntfs defauls 0 1

Offline

#15 2012-04-30 03:28:21

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: udiskie+consolekit and still unauthorized access with xfce4

Don't you have to put a mount point (like /media/Files) in place of "none"?

Last edited by anonymous_user (2012-04-30 03:28:28)

Offline

Board footer

Powered by FluxBB