Bug 500723

Summary: Partition Manager does not cope with microSD Card inside locked SD Card adapter, but Dolphin does.
Product: [Applications] partitionmanager Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://discuss.kde.org/t/unable-to-access-device-in-partition-manager-nor-modify-its-contents/30566/2?u=rokejulianlockhart#:~:text=3d-,The%20SD%20card%E2%80%99s%20locking%20slider,relevant%20options%20adapt%20to%20it.,-Solution
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Device Access Error
Partition Access Error

Description Roke Julian Lockhart Beedell 2025-02-25 13:36:06 UTC
Created attachment 178863 [details]
Device Access Error

SUMMARY
-------

Despite Dolphin listing my *locked* microSD-to-SD Card adapter, and providing an option to view it in Partition Manager, Partition Manager is unable to access it (until the adapter has been unlocked).

STEPS TO REPRODUCE
------------------

1.	~~~sh
	#!/usr/bin/env sh
	/usr/bin/sudo /usr/bin/dnf5 --refresh install -y \
		kde-partitionmanager-24.12.2-1.fc41.x86_64 \
		dolphin-24.12.2-1.fc41.x86_64
	~~~

	...then:

2.	-	~~~sh
		#!/usr/bin/env sh
		/usr/bin/partitionmanager --device $device # `/dev/sdd1`
		~~~

		...or:

	-	1.	~~~sh
			#!/usr/bin/env sh
			/usr/bin/dolphin --select $device # `/dev/sdd1`
			~~~

		2.	> Reformat or Edit with Partition Manager

OBSERVED RESULT
---------------

The SD Card doesn't appear in Partiton Manager, but does in Dolphin.

EXPECTED RESULT
---------------

The device should, at the least, *appear* in Partiton Manager, even if unmodifiable, for it would mirror Dolphin's behaviour, and demonstrate that the device itself is preventing modification, rather than Dolphin being unable to interact with it.

SOFTWARE/OS VERSIONS
--------------------

1.	~~~sh
	#!/usr/bin/env sh
	kinfo
	~~~

2.	> ~~~YAML
	> Operating System: Fedora Linux 41
	> KDE Plasma Version: 6.3.1
	> KDE Frameworks Version: 6.11.0
	> Qt Version: 6.8.2
	> Kernel Version: 6.12.15-200.fc41.x86_64 (64-bit)
	> Graphics Platform: Wayland
	> Manufacturer: ASRock
	> Product Name: X670E Taichi
	> ~~~

ADDITIONAL INFORMATION
----------------------

Originally reported at [`discuss.kde.org/t/30566`][1].

[1]: https://discuss.kde.org/t/unable-to-access-device-in-partition-manager-nor-modify-its-contents/30566?u=rokejulianlockhart
Comment 1 Roke Julian Lockhart Beedell 2025-02-25 13:36:20 UTC
Created attachment 178864 [details]
Partition Access Error
Comment 2 Andrius Štikonas 2025-02-26 00:32:15 UTC
Hmm, not sure whether we want this by default, but perhaps we could do it when device node is passed via command line (that's what dolphin does when it calls partitionmanager binary).