Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

KDE Dolphin doesn't detect usb storage [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

KDE Dolphin doesn't detect usb storage [SOLVED]

  • Quote

Post by jesnow » Tue Dec 25, 2018 8:34 pm

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

Code: Select all

[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: Select all

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.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Dec 25, 2018 8:36 pm

Do you use skype?
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Tue Dec 25, 2018 8:50 pm

asturm wrote:Do you use skype?
No.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Dec 25, 2018 8:52 pm

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

How do you start your Plasma session?
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Tue Dec 25, 2018 9:00 pm

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

Code: Select all

jesnow@armstrong ~ $ equery list elogind   
!!! No installed packages matching 'elogind'
 * Searching for elogind ...
How do you start your Plasma session?
With startx. I apparently use openbox window manager, not sure why I changed it.

Code: Select all

jesnow@armstrong ~ $ cat .xinitrc
# exec ck-launch-session startkde
exec ck-launch-session openbox-kde-session
I checked and consolekit is there and started.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Dec 25, 2018 9:04 pm

Not sure what the openbox start script does though, so can you check with a regular startkde session?
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Tue Dec 25, 2018 9:05 pm

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.
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Tue Dec 25, 2018 9:11 pm

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: Select all

jesnow@armstrong ~ $ cat .xinitrc 
exec ck-launch-session startkde
# exec ck-launch-session openbox-kde-session
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Dec 25, 2018 9:28 pm

dbus and consolekit are in default runlevel?

https://wiki.gentoo.org/wiki/KDE#No_display_manager
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Tue Dec 25, 2018 11:07 pm

asturm wrote:dbus and consolekit are in default runlevel?

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

Code: Select all

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.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Wed Dec 26, 2018 12:10 am

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.
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Wed Dec 26, 2018 1:59 am

Back to this in /var/log/messages:

Code: Select all

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
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Wed Dec 26, 2018 9:59 pm

Somebody besides me has had this happen, but no clarity on why:
https://forums.gentoo.org/viewtopic-t-1 ... art-0.html
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Thu Dec 27, 2018 7:12 pm

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: Select all

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.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Thu Dec 27, 2018 8:00 pm

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.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic