You are not logged in.

#1 2011-11-21 23:14:30

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Cannot mount drives as regular user with XFCE

This comes up all the time, but just about everything I've read from people are workarounds, not solutions.  When I double-click a drive icon on my desktop, I get this:

muscle.png

  • dbus is installed and running

  • I have XFCE started as "exec ck-launch-session startxfce4"

  • gvfs is installed

  • I am a part of the "storage" group

What can I do to mount a storage device as a regular user?

Last edited by synthead (2011-11-21 23:16:49)

Offline

#2 2011-11-21 23:17:08

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Cannot mount drives as regular user with XFCE

What filesystems are the drives using? Are you using udev rules, /etc/fstab rules? Related?

Last edited by roygbiv (2011-11-21 23:18:45)

Offline

#3 2011-11-21 23:21:29

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Cannot mount drives as regular user with XFCE

It's using vfat.  I haven't set any udev or fstab rules.  At this point, I'm starting X via "startx" on the command line, but I'm looking to move to a login manager sometime in the future.

Offline

#4 2011-11-21 23:26:17

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Cannot mount drives as regular user with XFCE

Try adding something like the following for your disk in /etc/fstab (assuming /dev/sdb here) and try mounting it manually:

/dev/sdb              /your/mountdir          vfat    noauto,user,rw,exec    0       0

The user option is the important option, as it allows for regular users to mount the device. Check out the uid,gid and umask options also.

Last edited by roygbiv (2011-11-21 23:26:47)

Offline

#5 2011-11-21 23:30:40

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

Re: Cannot mount drives as regular user with XFCE

Have you read the note here about the bug? https://wiki.archlinux.org/index.php/Startx#Policykit


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2011-11-21 23:38:18

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Cannot mount drives as regular user with XFCE

roygbiv wrote:

Try adding something like the following for your disk in /etc/fstab (assuming /dev/sdb here) and try mounting it manually:

/dev/sdb              /your/mountdir          vfat    noauto,user,rw,exec    0       0

The user option is the important option, as it allows for regular users to mount the device. Check out the uid,gid and umask options also.

I don't want to explicitly set block devices to specific directories.  XFCE used to be able to mount mount any device to /media/label without any configuration.

jasonwryan wrote:

Have you read the note here about the bug? https://wiki.archlinux.org/index.php/Startx#Policykit

I added dbus-launch to my .xinitrc line and it's still showing the error.

Offline

#7 2011-11-21 23:47:31

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Cannot mount drives as regular user with XFCE

Well, it was only meant for debugging purposes, not a permanent solution. Are you able to mount it or is it another bug?

Offline

#8 2011-11-22 00:00:40

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Cannot mount drives as regular user with XFCE

I'm sure if I put it in /etc/fstab I'd be able to mount it.

Offline

#9 2011-11-22 02:36:56

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Cannot mount drives as regular user with XFCE

I had to install polkit-gnome with the latest thunar update for this to work.  If this doesn't solve it for you, I'll point you to another thread with more info.

BTW, what was the storage group is now the disk group.  I believe it still won't make a difference here.

Offline

#10 2011-11-22 13:31:03

Viper_Scull
Member
From: London, UK
Registered: 2011-01-15
Posts: 153

Re: Cannot mount drives as regular user with XFCE

David Batson wrote:

I had to install polkit-gnome with the latest thunar update for this to work.  If this doesn't solve it for you, I'll point you to another thread with more info.

BTW, what was the storage group is now the disk group.  I believe it still won't make a difference here.


since when? storage and disk have always been different groups. Can you provide a link confirming that?

Having "ck-launch-session dbus-launch" when executing the session and creating (if deleted) the file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.udisks.pkla with the content

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

did the trick to solve the problem.

Last edited by Viper_Scull (2011-11-22 13:31:42)


Athlon II X4 620 + Gigabyte 785GPM-UD2H + 4GB DDR3 + SSD OCZ Vertex2 60GB

Archlinux x86_64 + Openbox

Offline

#11 2011-11-22 13:46:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot mount drives as regular user with XFCE

Viper_Scull wrote:
David Batson wrote:

I had to install polkit-gnome with the latest thunar update for this to work.  If this doesn't solve it for you, I'll point you to another thread with more info.

BTW, what was the storage group is now the disk group.  I believe it still won't make a difference here.

since when? storage and disk have always been different groups. Can you provide a link confirming that?

IIRC it was introduced in udev-174.

[karol@black ~]$ ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 11-21 16:29 /dev/sda
brw-rw---- 1 root disk 8, 1 11-21 16:29 /dev/sda1
brw-rw---- 1 root disk 8, 2 11-21 16:29 /dev/sda2
brw-rw---- 1 root disk 8, 3 11-21 16:29 /dev/sda3
brw-rw---- 1 root disk 8, 4 11-21 16:29 /dev/sda4


Edit: https://bugs.archlinux.org/task/26640

Last edited by karol (2011-11-22 13:50:07)

Offline

Board footer

Powered by FluxBB