How to run kde partition manager as root?

when i try:
sudo partitionmanager

sudo partitionmanager                                                                                            ✔  25s  
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
kf.dbusaddons: DBus session bus not found. To circumvent this problem try the following command (with bash):
    export $(dbus-launch)

and it does not launch

start it with a simple

partitionmanager

while starting you’ll be asked to sign in with your password. sometimes this loginscreen is in the back and another window is hiding it visible. in this case try to move or minimize the other windows.

3 Likes

don’t

partitionmanager will request superuser - beware - the window may hide behind the main window

i have an sd card that is locked to root user
when i use kde patition manager i cant modify it
bhen i use: sudo gparted i managed to modify it
so i think partition manager is not run as root

but this is not the problem that you asked for !
next time ask precise what’s your problem instead of wasting our time with nonsense-questions that lead us in a total different direction.
such behaviour is disgusting
i’m out

only the file system has permissions

while it is possible to set a write protection bit it is very uncommon.

and partition manager uses polkit to obtain permissions when launched

if you really need to you can zap the card. use lsblk to locate - then use sgdisk to wipe partition info (requires gptfdisk package to be installed)

sudo sgdisk --zap-all /dev/sdy
1 Like