blue-systems / plasma-issues

plasma 5.6 - 5.xx (ongoing)
0 stars 0 forks source link

kpartitionmanager #241

Open star-buck opened 4 years ago

star-buck commented 4 years ago

formatting a microsd and adding one fat16 600MB partition with the rest of space unallocated is not possible with kpartitionmanager.

yet the absolute same is possible without issues with gparted.

i made sure microsd is not mounted, etc., but still this "invalid argument" makes kpart faiil, whil gparted succeeds:

Screenshot_20200728_205344

star-buck commented 4 years ago

ignore in the screenshot its fat32, i tried both on it, and just saved last attempt as picture.

adriaandegroot commented 4 years ago

I have re-filed this upstream as https://bugs.kde.org/show_bug.cgi?id=425097

adriaandegroot commented 4 years ago

I can't reproduce this, not with a 2GB microSD and openSUSE tumbleweed but openSUSE ships a very old partitionmanager, 3.3.0 / 3.3.1, which uses a different approach to formatting than the current one:

kpm-1

kpm-2

kpm-3

Which versions of partitionmanager, kpmcore, and util-linux are you using?

star-buck commented 4 years ago

Whatever manjaro ships latest On Aug 7, 2020 13:02, "Adriaan de Groot" notifications@github.com wrote:

I can't reproduce this, not with a 2GB microSD and openSUSE tumbleweed but openSUSE ships a very old partitionmanager, 3.3.0 / 3.3.1, which uses a different approach to formatting than the current one:

[image: kpm-1] https://user-images.githubusercontent.com/19431457/89639148-57ab3000-d8ad-11ea-80d0-dbca5454c128.png

[image: kpm-2] https://user-images.githubusercontent.com/19431457/89639173-5f6ad480-d8ad-11ea-83ae-32c368e8be3a.png

[image: kpm-3] https://user-images.githubusercontent.com/19431457/89639185-6560b580-d8ad-11ea-95b7-5cde6c67a555.png

Which versions of partitionmanager, kpmcore, and util-linux are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/blue-systems/plasma-issues/issues/241#issuecomment-670461844, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGNDBTQ7IEGO6EG2YI7VKLR7PNNDANCNFSM4PK2GIOQ .

NuLogicSystems commented 4 years ago

partitionmanager 4.1.0-1 kpmcore 4.1.0-1.1 kio 5.72.0-1 util-linux 2.35.2-1.1

adriaandegroot commented 4 years ago

Debugging is ongoing in the upstream report, https://bugs.kde.org/show_bug.cgi?id=425097 . The underlying issue seems to be that KDE Partitionmanager is trying to start the partition on sector 0, which won't work in a GPT scheme (or MBR either)

adriaandegroot commented 4 years ago

https://invent.kde.org/system/kpmcore/-/merge_requests/13

adriaandegroot commented 4 years ago

This is an underlying bug in sfdisk (util-linux). I have submitted a patch (merged) there: https://github.com/karelzak/util-linux/pull/1128

To work around the bug with current sfdisk, kpmcore was patched: https://invent.kde.org/system/kpmcore/-/commit/6aa9d9372876484f8fe647c9d9e79de8c3f073b9

Updating one, or the other, will resolve this.