SUMMARY When doing an operation, it is possible to show additional details. KDE Partition manager will also show the command one can use on the command line; for example (only commands copied out from the details) ---- wipefs --all /dev/sdc1 sfdisk --force --delete /dev/sdc 1 sfdisk --force --append /dev/sdc mkfs.fat -F32 -I -v /dev/sdc1 sfdisk --part-type /dev/sdc 1 c fatlabel /dev/sdc1 label fsck.fat -a -w -v /dev/sdc1 umount /dev/sdc1 ---- STEPS TO REPRODUCE 1. Select drive 2. delete partitions 3. create new fat32 partition 4. apply operations 5. Click on "Details" OBSERVED RESULT The detail windows does not show always show the correct command EXPECTED RESULT I would expect that typing the shown commands would lead to the same outcome. Instead typing (for example) "sfdisk --force --append /dev/sdc" starts "sfdisk" in interactive mode. If one tries to start it in non-interactive mode, for example with ": | sfdisk --force --append /dev/sdc", then no changes are made to the disk, and the subsequent command fails. In this case (one partition on one drive), the "workaround is to use "echo ',' | sfdisk --force --append /dev/sdc", but for more complex setups (multiple partitions), it would be better if the details match what one has to actually type. SOFTWARE/OS VERSIONS Output of kinfo: Operating System: Debian GNU/Linux 12 KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Kernel Version: 6.12.19-amd64 (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz Memory: 33.4 GB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620 ADDITIONAL INFORMATION
Well, KDE Partition Manager does not run echo ',' | sfdisk --force --append /dev/sdc" since that's not a Linux command you can execute. Pipes like this are just bash syntax. Partition Manager does not run bash at all and it indeed simply runs sfdisk --force --append /dev/sdc" and then writes to it's stdin. I think there is a bit more info on the terminal if you launch with KPMCORE_DEBUG=1 partitionmanager. If I recall correctly, it will show what data is written to the process.
> KDE Partition Manager does not run echo ',' | sfdisk --force --append /dev/sdc" since that's not a Linux command you can execute. I did not write that partition manager uses "echo ',' | sfdisk --force --append /dev/sdc", but that it was my workaround. > it indeed simply runs sfdisk --force --append /dev/sdc" and then writes to it's stdin. But that can't be right, at least, does not seem to be right, for the following two reasons: 1) If I create multiple partitions, in the details I see "sfdisk --force --append /dev/sdc", with no sizes or percentages on how much space they should take. 2) executing "sfdisk --force --append /dev/sdc" does not change the state on the disk
Opps, sorry, missed the part "and then writes to it's stdin" It would be then great if it would be possible to see what's written in the details...