You are not logged in.

#1 2012-12-06 03:48:04

jcmeza
Member
Registered: 2012-07-28
Posts: 11

cannot automount drives

Hello to all, I've been using arch for about 2 years now, and I have never really had any issues with it(that I couldn't solve by reading the wiki) until now.

I have been learning to understand how systemd works and it seems coherent to me, except for one thing: I cannot make it so my additional partitions and usb drives mount automatically.

or maybe I should clarify.
Before, with consolekit in /etc/rc.conf, and using openbox, all I had to do was in ~/.xinitrc 'exec ck-launch-session dbus-launch openbox-session' and whenever a drive was connected all I had to do was to open nautilus and clic on the entry for that device on the panel on the side and it would automatically grant me read and write access as a normal user without asking for passwords, and it worked wonderfully.

Now, I still see the entries in nautilus, but when I clic on them, I get a message saying that I'm not authorized to perform that operation,

systemctl list-unit-files shows that dbus.service, autfs.service and udisks2.service are enabled and usdisk.service is disabled so that it does not conflict with udsik2.service.

I am on the storage and the disk groups, and if I do 'sudo udisks --mount <device>' the device mounts without issues, so udisks does work fine, I just don't know how to set it so I can just clic on the device on nautilus and access the drives.

any help would be greately appreciated.
Jay

Offline

#2 2012-12-06 04:30:51

root
Member
From: 127.0.0.1
Registered: 2012-04-13
Posts: 297

Re: cannot automount drives

If this started to happen after the recent dbus update,

https://bbs.archlinux.org/viewtopic.php … 5#p1202415


\(o_X)/
                        'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols

Offline

#3 2012-12-07 23:24:51

jcmeza
Member
Registered: 2012-07-28
Posts: 11

Re: cannot automount drives

I tried this and I even installed thunar to get nautilus related bugs out of the way, but unfortunately I had no luck

Offline

#4 2012-12-08 00:15:58

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: cannot automount drives

use the .xinitrc from /etc/skel and only add "exec openbox-session" at the end of the file (without ck-launch-session or dbus-launch).

and please search the forums next time, there have been about a thousand threads about this issue.

Offline

#5 2012-12-09 13:33:19

jv2112
Member
Registered: 2011-07-23
Posts: 160

Re: cannot automount drives

Root -- Love your avatar....


Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -

Offline

#6 2012-12-31 20:18:46

jcmeza
Member
Registered: 2012-07-28
Posts: 11

Re: cannot automount drives

65kid

"use the .xinitrc from /etc/skel and only add "exec openbox-session" at the end of the file (without ck-launch-session or dbus-launch).and please search the forums next time, there have been about a thousand threads about this issue."

no, that does not work, and I did search

Offline

#7 2012-12-31 20:28:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: cannot automount drives

jcmeza wrote:

65kid

"use the .xinitrc from /etc/skel and only add "exec openbox-session" at the end of the file (without ck-launch-session or dbus-launch).and please search the forums next time, there have been about a thousand threads about this issue."

no, that does not work, and I did search

What do you mean it does not work? What happens? Provide more details and specifics if you expect help.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2012-12-31 20:30:47

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: cannot automount drives

You probably should *not* be in the storage and disk groups now you are using systemd.

Is polkit installed?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2012-12-31 23:48:38

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: cannot automount drives

jcmeza wrote:

I tried this and I even installed thunar to get nautilus related bugs out of the way, but unfortunately I had no luck

Since you have already switched file managers once, may I suggest you try spacefm and udevil from the Community repo - they worked wonders for me.

http://ignorantguru.github.com/spacefm/
https://bbs.archlinux.org/viewtopic.php?id=133657

Offline

#10 2013-01-03 01:43:53

jcmeza
Member
Registered: 2012-07-28
Posts: 11

Re: cannot automount drives

I tried udevil, but I still get a message saying that I'm not authorized to perform that operation when I clic on one of the drives, regardles of my file manager.

I really didnt notice when arch became so hard to set up, after almost three years this is the first time I can't setup my system properly, and I really don't want to distrohop but I guess I will have to, even though it's gonna hurt my pride not being able to do this :-S

Offline

#11 2013-01-03 05:47:27

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: cannot automount drives

Have you considered adding adding your mount points to /etc/fstab?  I haven't done anything else and my pcmanfm finds my usb/etc mounts without problems.  Actually, systemd has simplified my automount options.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#12 2013-01-03 18:01:48

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

Re: cannot automount drives

jcmeza please answer cfr's question: do you have polkit installed? If not, install it.

Offline

#13 2013-01-04 08:16:14

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: cannot automount drives

@jcmeza

If you have polkit installed ad a custom file to /etc/polkit-1/rules.d :

99-custom.rules

polkit.addRule(function(action, subject) {
		if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
			return polkit.Result.YES;
		}
	}
);

Worked for me

Offline

#14 2013-01-07 17:44:00

jcmeza
Member
Registered: 2012-07-28
Posts: 11

Re: cannot automount drives

Thank you all for replying,

I run systemctl and it shows polkit.service running, so I assume it's installed.

henk wrote:

@jcmeza

If you have polkit installed ad a custom file to /etc/polkit-1/rules.d :

99-custom.rules

polkit.addRule(function(action, subject) {
		if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
			return polkit.Result.YES;
		}
	}
);

Worked for me

I did that and rebooted, but when it comes back up I cannot even see the drives listed in my file manager,

Offline

#15 2013-01-07 18:23:14

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: cannot automount drives

You don't need any polkit rules-alll working fine here and I have no special rules.  You don't still have consolekit installed, do you?  I seem to remember I had to uninstall it myself but that may have been taken care of automagically now.  I'd still suggest just setting up your /etc/fstab to help with mounting permissions.

Edit: scratch the /etc/fstab stuff.  I just found problems removing files from a mp3 device that was mounting as /media/usb from my fstab.  I commented out that entry in my fstab and now permissions are okay and device is mounting as /run/media/username/...some random number.  Apparently, systemd is handling it all without any effort on my part.  Try checking #systemctl status polkit and see if the polkitd is starting up properly.  There were some posts awhile ago and people were having problems with the polkit id.  Search the forum for specifics.

Last edited by bgc1954 (2013-01-07 19:46:26)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#16 2013-01-07 19:02:20

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: cannot automount drives

This weekend I made a fresh install in a USB stick, and I have the same problem.
I have, Openbox, PCManFM and Tint2. Another packages, udisks2, gvfs, gamin, polkit, polkit-gnome, libfm and finally udisks (I was trying everything).
Too, try in groups storage and disks, out in groups. Several policy-kits... and I can't see another USBs.

Comparing with my anothers Archs (they are using console-kit-daemon.service); so, I can't see if a 'service' is missing.
This is systemctl output: (automount no working because pcmanfm can't see any media)

UNIT                        LOAD   ACTIVE SUB       DESCRIPTION
proc-sys...t_misc.automount loaded active waiting   Arbitrary Executable File Formats File System Automount Point
sys-devi...und-card0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:1b.0/sound/card0
.......
........
sys-subs...ces-wlan0.device loaded active plugged   /sys/subsystem/net/devices/wlan0
-.mount                     loaded active mounted   /
dev-hugepages.mount         loaded active mounted   Huge Pages File System
dev-mqueue.mount            loaded active mounted   POSIX Message Queue File System
sys-kernel-debug.mount      loaded active mounted   Debug File System
tmp.mount                   loaded active mounted   Temporary Directory
systemd-...ord-console.path loaded active waiting   Dispatch Password Requests to Console Directory Watch
systemd-...ssword-wall.path loaded active waiting   Forward Password Requests to Wall Directory Watch
dbus.service                loaded active running   D-Bus System Message Bus
getty@tty1.service          loaded active running   Getty on tty1
polkit.service              loaded active running   Authorization Manager
systemd-journald.service    loaded active running   Journal Service
systemd-logind.service      loaded active running   Login Service
systemd-remount-fs.service  loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service      loaded active exited    Apply Kernel Variables
systemd-...es-setup.service loaded active exited    Recreate Volatile Files and Directories
systemd-...-trigger.service loaded active exited    udev Coldplug all Devices
systemd-udevd.service       loaded active running   udev Kernel Device Manager
systemd-...sessions.service loaded active exited    Permit User Sessions
systemd-...le-setup.service loaded active exited    Setup Virtual Console
udisks2.service             loaded active running   Disk Manager
dbus.socket                 loaded active running   D-Bus System Message Bus Socket
systemd-initctl.socket      loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket     loaded active running   Journal Socket
systemd-shutdownd.socket    loaded active listening Delayed Shutdown Socket
systemd-...d-control.socket loaded active listening udev Control Socket
systemd-udevd-kernel.socket loaded active running   udev Kernel Socket
basic.target                loaded active active    Basic System
cryptsetup.target           loaded active active    Encrypted Volumes
getty.target                loaded active active    Login Prompts
graphical.target            loaded active active    Graphical Interface
local-fs-pre.target         loaded active active    Local File Systems (Pre)
local-fs.target             loaded active active    Local File Systems
multi-user.target           loaded active active    Multi-User
remote-fs.target            loaded active active    Remote File Systems
sockets.target              loaded active active    Sockets
sound.target                loaded active active    Sound Card
swap.target                 loaded active active    Swap
sysinit.target              loaded active active    System Initialization
systemd-...iles-clean.timer loaded active waiting   Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

69 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.


@jcmeza How have you get enable usdisks2 or polkit?
They haven't [install] section. So, have you modified it?
I don't how yet. I'm reading about that in systemd.

Last edited by Alber (2013-01-07 19:10:08)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#17 2013-01-08 11:09:45

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: cannot automount drives

Hello again

Today, there was a polkit and udisks2 update. But, for me, it didn't change.
I'll tell how it is working. I can mount with udisks --mount /dev/sdxy and then it appear in pcmanfm. From there, pcmanfm, I can umount as always.
But still it can't see new devices atached.
@jcmeza. Have you the same behaviour? Now, I have no extra polkit rules.


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

#18 2013-01-08 21:33:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: cannot automount drives

Alber wrote:
polkit.service              loaded active running   Authorization Manager

udisks2.service             loaded active running   Disk Manager

@jcmeza How have you get enable usdisks2 or polkit?
They haven't [install] section. So, have you modified it?
I don't how yet. I'm reading about that in systemd.

You don't need to enable them - they are being started automatically as shown in the above output. But check the status for the services for clues and/or use journalctl.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB