You are not logged in.

#1 2014-08-30 10:11:56

buntolo
Member
Registered: 2011-10-11
Posts: 202

Problems with manual mounting

I want to be able to mount devices (internal and external) as normal user. I do NOT want automount.
I also want the mount-tool to automatically create mount points on demand, naming them from device-label or device-mapping.

I read these pages:
https://wiki.archlinux.org/index.php/Udisks
https://wiki.archlinux.org/index.php/Devmon
https://wiki.archlinux.org/index.php/Policykit
https://wiki.archlinux.org/index.php/Groups

Udisks wiki page suggests proposes a .rules with 'storage' group inside it: https://wiki.archlinux.org/index.php/Ud … figuration
Wiki lists 'storage' as a pre-systemd group and suggest not to use it.
What should I do?
Policykit should work as intended and I have a valid local session:

$ systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since sab 2014-08-30 11:09:50 CEST; 1h 3min ago
     Docs: man:polkit(8)
 Main PID: 396 (polkitd)
   CGroup: /system.slice/polkit.service
           └─396 /usr/lib/polkit-1/polkitd --no-debug

ago 30 11:09:50 biscottyno polkitd[396]: Started polkitd version 0.112
ago 30 11:09:50 biscottyno polkitd[396]: Loading rules from directory /etc/p...d
ago 30 11:09:50 biscottyno polkitd[396]: Loading rules from directory /usr/s...d
ago 30 11:09:50 biscottyno polkitd[396]: Finished loading, compiling and exe...s
ago 30 11:09:50 biscottyno polkitd[396]: Acquired the name org.freedesktop.P...s
ago 30 11:09:50 biscottyno systemd[1]: Started Authorization Manager.
Hint: Some lines were ellipsized, use -l to show in full.
$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=archio
Timestamp=sab 2014-08-30 11:10:00 CEST
TimestampMonotonic=13680457
VTNr=1
TTY=tty1
Remote=no
Service=login
Scope=session-c1.scope
Leader=377
Audit=0
Type=tty
Class=user
Active=yes
State=active
IdleHint=yes
IdleSinceHint=1409389800186662
IdleSinceHintMonotonic=13114369

I do NOT want to install udevil and Devmon, which are external and redundant things, to do something I could do without. In the pre-systemd I managed to do it with the use of storage group and without udevil. I have been suggested to reactivate storage group, but I would like a more "systemd-philosophy" compatible way.

Last edited by buntolo (2014-08-30 10:18:43)

Offline

#2 2014-08-30 10:26:28

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Problems with manual mounting

I'm near solving: replacing 'storage' with 'wheel' allow me to mount devices without asking permissions.

The only "problem" left is that it mount devices under /run/media/$device_UUID while I would like them to be mounted $deivce_LABEL or, if unavailable, volume size or device mapping.

Also: should devices be mounted under /run or under /media? If I remember correctly in my old archbox devices where mounted under /media. I know that /run is intended as a tmpfs to be available sooner than /var and the problem having lots of tmpfs around many places (like dev).

Offline

Board footer

Powered by FluxBB