Bug 469275 - Non-removable volumes shown as removable volumes
Summary: Non-removable volumes shown as removable volumes
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices widget (other bugs)
Version First Reported In: 5.27.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-02 15:46 UTC by Aleksey Kontsevich
Modified: 2023-07-22 20:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
udisksctl.log (50.87 KB, text/x-log)
2023-07-22 19:38 UTC, Aleksey Kontsevich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksey Kontsevich 2023-05-02 15:46:22 UTC
SUMMARY
Disks & Devices applet always shows all the available partitions for me if I select "Show only removable media". If I select "Show non-removable media" - it shows nothing. "Show all" - shows all like in the 1st variant. Systemsettings app shows external devices correctly - only removable media.


OBSERVED RESULT
Disks & Devices applet shows all disks including removable media (USB), SSD and HDD

EXPECTED RESULT
Disks & Devices applet should show only removable media (USB).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  openSUSE Tumbleweed 20230501
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-1-default (64-bit)
Graphics Platform: X11
Comment 1 Aleksey Kontsevich 2023-06-11 23:08:26 UTC
Any chance to fix this?!
Comment 2 Fabian Vogt 2023-07-22 19:01:46 UTC
Works here, TW 20230710.

Please attach the output of "udisksctl dump".
Comment 3 Aleksey Kontsevich 2023-07-22 19:38:51 UTC
Created attachment 160452 [details]
udisksctl.log

udisksctl dump attached.
Comment 4 Fabian Vogt 2023-07-22 19:57:54 UTC
Interpreting the dump:

The usb drive has:

    ConnectionBus:              usb
    Ejectable:                  true
    MediaRemovable:             false
    Removable:                  true

The internal SSD has:

    ConnectionBus:              
    Ejectable:                  true
    MediaRemovable:             true
    Removable:                  true

The internal HDD has:

    ConnectionBus:              
    Ejectable:                  true
    MediaRemovable:             true
    Removable:                  true

So this is an issue with udisks itself or wherever udisks gets this information from (kernel, systemd/udev).
You can also check whether those ports have hotplug enabled (ref. https://bugzilla.kernel.org/show_bug.cgi?id=111651). If not, you might want to report this upstream to udisks or kernel.
Comment 5 Aleksey Kontsevich 2023-07-22 20:24:21 UTC
Yes, I bought new MB, bug started after that, so https://bugzilla.kernel.org/show_bug.cgi?id=111651#c3 helped: 

>Disabling the hotplug functionality in the bios make the drives appears as non removable anymore