Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE Dolphin doesn't detect usb storage [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 8:34 pm    Post subject: KDE Dolphin doesn't detect usb storage [SOLVED] Reply with quote

When I plug in a usb drive, I see the appropriate reaction in dmesg:

Code:

[73299.300792] usb 2-1.4: new high-speed USB device number 7 using ehci-pci
[73299.387604] usb 2-1.4: New USB device found, idVendor=058f, idProduct=6387
[73299.387609] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[73299.387612] usb 2-1.4: Product: Mass Storage
[73299.387615] usb 2-1.4: Manufacturer: Generic
[73299.387618] usb 2-1.4: SerialNumber: 174BEFE0
[73299.387852] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[73299.388028] scsi host8: usb-storage 2-1.4:1.0
[73300.450934] scsi 8:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[73300.451204] sd 8:0:0:0: Attached scsi generic sg9 type 0
[73300.452334] sd 8:0:0:0: [sdi] 4014080 512-byte logical blocks: (2.06 GB/1.91 GiB)
[73300.453337] sd 8:0:0:0: [sdi] Write Protect is off
[73300.453339] sd 8:0:0:0: [sdi] Mode Sense: 23 00 00 00
[73300.454456] sd 8:0:0:0: [sdi] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[73300.459611]  sdi: sdi1
[73300.463362] sd 8:0:0:0: [sdi] Attached SCSI removable disk


But kde/dolphin shows no sign that it exists. Device notifier is empty "No devices available". It's almost as if udisks isn't starting. But I have consolekit and dbus and udisks use flags enabled. It gets interesting trying to run a diagnostic on udisks like:

Code:

armstrong /home/jesnow # udisksctl mount -b /dev/sdh1
Error connecting to the udisks daemon: Error calling StartServiceByName for org.freedesktop.UDisks2: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.freedesktop.UDisks2: Permission denied
armstrong /home/jesnow # udisksctl status
Error connecting to the udisks daemon: Error calling StartServiceByName for org.freedesktop.UDisks2: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program org.freedesktop.UDisks2: Permission denied



So it's some more permissions set wrong somewhere it seems, which I suspected from the first. But where? I seem to have lost permission even to speak to udisks.

Cheers,

Jon.


Last edited by jesnow on Thu Dec 27, 2018 7:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Tue Dec 25, 2018 8:36 pm    Post subject: Reply with quote

Do you use skype?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 8:50 pm    Post subject: Reply with quote

asturm wrote:
Do you use skype?


No.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Tue Dec 25, 2018 8:52 pm    Post subject: Reply with quote

Okay, anyway make sure that elogind is not installed if you use consolekit.

How do you start your Plasma session?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 9:00 pm    Post subject: Reply with quote

asturm wrote:
Okay, anyway make sure that elogind is not installed if you use consolekit.


Code:
jesnow@armstrong ~ $ equery list elogind   
!!! No installed packages matching 'elogind'
 * Searching for elogind ...


Quote:

How do you start your Plasma session?


With startx. I apparently use openbox window manager, not sure why I changed it.

Code:
jesnow@armstrong ~ $ cat .xinitrc
# exec ck-launch-session startkde
exec ck-launch-session openbox-kde-session


I checked and consolekit is there and started.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Tue Dec 25, 2018 9:04 pm    Post subject: Reply with quote

Not sure what the openbox start script does though, so can you check with a regular startkde session?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 9:05 pm    Post subject: Reply with quote

asturm wrote:
jesnow wrote:
With startx.

And what is the content of your .xinitrc file? Just startkde is not enough to get a proper consolekit session.


It is quoted above.
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 9:11 pm    Post subject: Reply with quote

Restarted normally, no change except the panel took over a minute to appear. I think that's why I switched, because of some non-optimal kwin behavior.

To be clear:

Code:
jesnow@armstrong ~ $ cat .xinitrc
exec ck-launch-session startkde
# exec ck-launch-session openbox-kde-session
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Tue Dec 25, 2018 9:28 pm    Post subject: Reply with quote

dbus and consolekit are in default runlevel?

https://wiki.gentoo.org/wiki/KDE#No_display_manager
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Tue Dec 25, 2018 11:07 pm    Post subject: Reply with quote

asturm wrote:
dbus and consolekit are in default runlevel?

https://wiki.gentoo.org/wiki/KDE#No_display_manager


Code:
jesnow@armstrong ~ $ ps ax | grep dbus
16991 ?        Ss     0:00 /usr/bin/dbus-daemon --system
18030 tty1     S      0:00 dbus-launch --autolaunch a92dcff371da281da7754a0b5c1a9a2b --binary-syntax --close-stderr
18031 ?        Ss     0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
18106 ?        Sl     0:00 /usr/bin/gmenudbusmenuproxy
19691 pts/0    S+     0:00 grep --colour=auto dbus
jesnow@armstrong ~ $ ps ax | grep console
17020 ?        Ssl    0:00 /usr/sbin/console-kit-daemon
19694 pts/0    S+     0:00 grep --colour=auto console
jesnow@armstrong ~ $


I'm suspecting all those same things, but having been bitten by a lot of them before, I thought of most of them. It should work.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Wed Dec 26, 2018 12:10 am    Post subject: Reply with quote

jesnow wrote:
Restarted normally, no change except the panel took over a minute to appear. I think that's why I switched, because of some non-optimal kwin behavior.

That's certainly not normal and likely also related to your permissions issue here.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Wed Dec 26, 2018 1:59 am    Post subject: Reply with quote

Back to this in /var/log/messages:

Code:
Dec 25 19:58:48 armstrong dbus[2610]: [system] Activating service name='org.freedesktop.UDisks2' (using servicehelper)
Dec 25 19:58:48 armstrong dbus[2610]: [system] Activated service 'org.freedesktop.UDisks2' failed: Failed to execute program org.freedesktop.UDisks2: Permission denied


There's still a permission messed up someplace, but not clear to me where or if it's a component of the whole house of cards that isn't started. No kevin spacey pun intended.

JS
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Wed Dec 26, 2018 9:59 pm    Post subject: Reply with quote

Somebody besides me has had this happen, but no clarity on why:
https://forums.gentoo.org/viewtopic-t-1053548-start-0.html
Back to top
View user's profile Send private message
jesnow
Guru
Guru


Joined: 26 Apr 2006
Posts: 581

PostPosted: Thu Dec 27, 2018 7:12 pm    Post subject: Reply with quote

Sometimes the simple solution is the least obvious: I didn't have the appropriate polkit rules, not having copied them from my old system. The default polkit rules are very locked down.

Now:

Code:
armstrong /home/jesnow # udisksctl status
MODEL                     REVISION  SERIAL               DEVICE
--------------------------------------------------------------------------
PLEXTOR PX-128M3P         1.00      002205103870         sda     
KINGSTON SA400S37120G     SBFK71E0  50026B7782302680     sdb     
ST4000DM004-2CV104        0001      ZFN1KE8K             sdc     
hp      DVD A  DH16ABLH   3HD9      3E8028901721         sr0     
Generic- SD/MMC           1.00      058F63626476         sdd     
Generic- Compact Flash    1.01      058F63626476         sde     
Generic- SM/xD-Picture    1.02      058F63626476         sdf     
Generic- MS/MS-Pro        1.03      058F63626476         sdg     
Generic Flash Disk        8.07      174BEFE0             sdh     


So that was a lot of needless frustration. Generally I find the whole stack of dbus/polkit/consolekit/udisks to be very difficult to navigate and troubleshoot. And the defaults are NEVER what a normal user wants.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Thu Dec 27, 2018 8:00 pm    Post subject: Reply with quote

Actually the default work just fine for most people - why it was different in your case remains a mistery, but at least you got it solved.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum