You are not logged in.

#1 2012-08-13 17:24:32

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Thunar 'Failed to mount'

Hi,

I'm using Thunar with i3 on Arch. Thunar is happy for me to mount cds, dvds, flash drives and external hard drives, but when I attempt to mount other partitions of my internal hard drives, it produces 'Failed to mount "..." Not authorized to perform operation.'

I've followed the wiki page for thunar, and most forum posts just direct me there.

.xinitrc reads 'exec ck-launch-session dbus-launch i3'. I am in the group 'storage'. dbus is in rc.conf as a daemon.

I have added "[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes" to /etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla

Still it refuses to mount. Am I being stupid somewhere? Please help! Thanks.

Offline

#2 2012-08-13 17:31:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Thunar 'Failed to mount'

Are these other partitions listed in your fstab, I am not sure, but I think you may need to specify users in you fstab in order to mount as a normal user through a file manager like Thunar.  I personally prefer to do it manually, as I can then determine where I will mount it, but I do recall similar issues when I was more gui dependant.  I think the 'users' mount or fstab option may help you out.

Offline

#3 2012-08-13 17:38:36

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

They are currently not listed under fstab, although I did add them briefly with 'users' but still couldn't mount them.

Offline

#4 2012-08-13 17:56:22

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

Should I need to run mount as root in terminal even if the disk I'm mounting has the 'users' option in fstab? Because it is still telling me 'only root can do that' so it could be that I've added it to fstab wrongly?

It currently reads

/dev/sda5    /media/hdd    ext4    users    0    2

Offline

#5 2012-08-13 18:00:51

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Thunar 'Failed to mount'

Hmmm... I am fairly certain that the user option sould give regualr users the option to mount most filesystems... ntfs is special.  Your fstab looks right enough to mount, though you should probably reference the mount man page for mroe info.  That will give you the available options for the -o flag in the mount command as well as options to include in your fstab.

Offline

#6 2012-08-13 18:03:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Thunar 'Failed to mount'

Also, how are you starting X?  From startx in the virtual console or from a login manager like SLIM?  Because slim is console-kit capable, so should not need the ck-launch-session.

Offline

#7 2012-08-13 18:08:37

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

Ah, yes I was making a stupid mistake. I can now mount sda5 in terminal as me, but thunar still won't let me...

Offline

#8 2012-08-13 18:25:46

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

I am starting X with exec startx in bash_profile. I'm not using a login manager.

Offline

#9 2012-08-13 19:23:08

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

I discovered that polkit had not been running at startup, so it wasn't giving me the authentication to mount the drives. I changed my .xinitrc to

exec ck-launch-session dbus-launch /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & i3

... and now thunar lets me mount the one drive that I listed in fstab with users (but still asks me for root's password !?) but now all other drives (including flash drives, cds, etc.) no longer show up...

I've tried changing the order of the things in xinitrc, but it seems that I have to choose between only seeing one drive but being able to mount it, or seeing all my drives but only being able to mount a select few.

I have tried file managers other than thunar and all react in exactly the same way.

Last edited by sjb300 (2012-08-13 19:24:19)

Offline

#10 2012-08-13 20:39:22

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

Re: Thunar 'Failed to mount'

Try either of these lines and let us know if they work.

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
exec ck-launch-session dbus-launch i3

OR

exec ck-launch-session dbus-launch bash -c "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & i3"

Last edited by anonymous_user (2012-08-13 20:39:43)

Offline

#11 2012-08-14 00:06:04

sjb300
Banned
Registered: 2012-08-13
Posts: 8

Re: Thunar 'Failed to mount'

Thank you, anonymous, the second one shows all unmounted drives and allows me to mount them. However, it still asks me for the root password to do so, whereas I can mount them without sudo in terminal. Any ideas?

Offline

Board footer

Powered by FluxBB