You are not logged in.

#1 2012-11-08 13:31:47

niharsarangi
Member
From: Madison, WI
Registered: 2012-08-26
Posts: 29
Website

Error mounting a USB disk

After last upgrade, I am getting this error when trying to mount an external hard disk.
If I try it using dolphin, it says

"An error occured while accessing 'disk name', the system responded: An unspecified error has occurred.: Not Authorized"

with

 udisks --mount 

I am getting the same error too.

If I use these with sudo (gksu/kdesu) it works just fine.

My user is part of storage group. Also made changes in

/usr/shre/polkit-1/actions/org.freedesktop.udisks.policy

to allow_inactive.

<allow_inactive>yes</allow_inactive>

Offline

#2 2012-11-10 00:02:54

oeufcoque
Member
Registered: 2012-11-09
Posts: 19
Website

Re: Error mounting a USB disk

I believe the "storage" group was renamed to "disk" a while ago. At least I can't find a group named "storage" on my system.

To add yourself to the "disk" group, issue the following command:

usermod -aG disk your-login-name

Then logout (or reboot), to let the changes take effect.

Offline

#3 2012-11-10 03:49:50

niharsarangi
Member
From: Madison, WI
Registered: 2012-08-26
Posts: 29
Website

Re: Error mounting a USB disk

I tried that. Still no luck.

Offline

#4 2012-11-10 04:01:30

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

Re: Error mounting a USB disk

With an active logind session you no longer need to worry about groups...

The wiki has the details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-11-10 06:39:17

niharsarangi
Member
From: Madison, WI
Registered: 2012-08-26
Posts: 29
Website

Re: Error mounting a USB disk

@jasonwryan
When I try to check whether it is a active logind session by using loginctl

loginctl show-session $XDG_SESSION_ID

It says,

Failed to issue method call: Launch helper exited with unknown return code 1 

Offline

#6 2012-11-10 06:55:59

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

Re: Error mounting a USB disk

You have to be running systemd for this to work.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-11-10 07:17:51

niharsarangi
Member
From: Madison, WI
Registered: 2012-08-26
Posts: 29
Website

Re: Error mounting a USB disk

I have added

systemd

to my Daemons array in

rc.conf

But still loginctl is showing the same message.

Offline

#8 2012-11-10 07:30:12

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

Re: Error mounting a USB disk

You are doing it wrong. Please read the wiki entry on systemd.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2012-11-10 10:25:53

Flemur
Member
Registered: 2012-05-24
Posts: 72

Re: Error mounting a USB disk

"With an active logind session you no longer need to worry about groups...
The wiki has the details."

No, it doesn't have the details. 

If you don't know the answer to his question, why waste everyone's time playing school-marm?


"If you do not change direction, you may end up where you are heading." -- L.T.

Offline

#10 2012-11-10 14:07:20

niharsarangi
Member
From: Madison, WI
Registered: 2012-08-26
Posts: 29
Website

Re: Error mounting a USB disk

Thanks. Adding systemd as a kernel parameter solved the issue.

Offline

#11 2012-11-10 16:41:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Error mounting a USB disk

Flemur wrote:

"With an active logind session you no longer need to worry about groups...
The wiki has the details."

No, it doesn't have the details. 

If you don't know the answer to his question, why waste everyone's time playing school-marm?

Your assertion must be correct.

But I thought I has seen something hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2012-11-10 20:27:37

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

Re: Error mounting a USB disk

Flemur wrote:

"With an active logind session you no longer need to worry about groups...
The wiki has the details."

No, it doesn't have the details.

I can understand your confusion; it is hidden on the groups page of the wiki:
https://wiki.archlinux.org/index.php/Groups#User_groups


Flemur wrote:

If you don't know the answer to his question, why waste everyone's time playing school-marm?

I'm sorry that I wasted your valuable time by posting information that would help the OP to read more about their issue and thereby encourage them to solve the issue themselves, rather than copy the information from the wiki here so that you didn't waste a few of your precious minutes having to search yourself trying to back up your empty assertion.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2012-11-10 22:15:58

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

Re: Error mounting a USB disk

You should be sorry jasonwryan!  I demand a refund!!!

Offline

#14 2012-11-10 22:46:25

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

Re: Error mounting a USB disk

[rhetorical question]Are our forum users getting crankier all of a sudden?[/rhetorical question]


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

Offline

#15 2012-11-11 01:45:28

Whef
Member
Registered: 2012-08-26
Posts: 33

Re: Error mounting a USB disk

I still don't understand how we're supposed to preserve logind sessions. This is all the information I could find on the Wiki:

https://wiki.archlinux.org/index.php/Xi … he_session
https://wiki.archlinux.org/index.php/Sy … emd-logind
https://wiki.archlinux.org/index.php/Groups#User_groups

Which is great and all... but where in there does it tell me how to actually preserve the session? I'm using awesome and starting it manually with xinit, so when I boot up into a VT everything is working correctly, as can be verified by

loginctl show-session $XDG_SESSION_ID

However, after running xinit I get

Active=no

Thus it's broken (I'm assuming this means that it no longer believes I'm using the session, so it disables me from taking action). Also, it seems my VT has switched from CTRL+ALT+F1 to CTRL+ALT+F2... I get that /etc/X11/xinit/xserverrc handles the default tty to start on, but how do we actually use it, and what do we do? Or where is documentation related to this? Thanks.

Last edited by Whef (2012-11-11 01:53:02)

Offline

#16 2012-11-11 01:54:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Error mounting a USB disk

Are you fully up to date?
Can you post your .xinitrc file?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#17 2012-11-11 02:12:09

Whef
Member
Registered: 2012-08-26
Posts: 33

Re: Error mounting a USB disk

Yep, I update every day.

.xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xrandr --dpi 120
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
syndaemon -K -R -t -i 1 -d
awesome

Offline

#18 2012-11-11 02:31:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Error mounting a USB disk

What if you were to change that last line to exec awesome in order to keep it on the same vt?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#19 2012-11-11 02:36:55

Whef
Member
Registered: 2012-08-26
Posts: 33

Re: Error mounting a USB disk

After posting I actually thought of the same thing (it was left off because I deleted ck-launch-session and forgot to put it back), and unfortunately it didn't work. sad Same exact thing.

Offline

#20 2012-11-11 03:20:48

Whef
Member
Registered: 2012-08-26
Posts: 33

Re: Error mounting a USB disk

I figured it out.

xinit is tasked with two jobs: finding a client to run, and finding a server to run it on.

The default behavior of xinit is to first look for commandline arguments that tell it what to do, e.g.:

xinit /usr/bin/awesome -- /usr/bin/X

This tells it to run awesome wm using the X server located at /usr/bin/X.

Failing commandline arguments, xinit then looks in your home directory for files .xinitrc and .xserverrc. If they exist, xinit will execute these files for the responsibility of the client and server, respectively.

If these do not exist, then xinit uses defaults built-in to the xinit program (launches xterm with /usr/bin/X). This is where startx differs. Under the same circumstance, startx will also search the /etc/X11/xinit directory for system wide xinitrc and xserverrc files. In all other ways startx is the same program, such that if you provide server arguments to startx then it will preference that over the default xserverrc, and thus you'll have the same problem.

All of this boils down to the appropriate X server arguments. The system wide xserverrc located in /etc/X11/xinit/xserverrc checks if the environment variable XDG_VTNR has been set (the current virtual terminal number, set by pam_systemd), and if it is then to use that same terminal number for the next X session by running:

exec /usr/bin/X vt$XDG_VTNR

So, there's three solutions:

  • Use startx instead of xinit

  • Make a symlink to the default xserverrc file in your home directory. This works because xinit still checks your home directory for xinitrc and xserverrc, just not the system wide files.

  • Make your own xserverrc that will do the correct thing, and put it in your home directory.

Last edited by Whef (2012-11-11 04:34:27)

Offline

Board footer

Powered by FluxBB