You are not logged in.
Pages: 1
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
If this started to happen after the recent dbus update,
\(o_X)/
'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols
Offline
I tried this and I even installed thunar to get nautilus related bugs out of the way, but unfortunately I had no luck
Offline
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
Root -- Love your avatar....
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
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
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.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
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
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
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
jcmeza please answer cfr's question: do you have polkit installed? If not, install it.
Offline
@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
Thank you all for replying,
I run systemctl and it shows polkit.service running, so I assume it's installed.
@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
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
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
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
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
Pages: 1