Bug 479890

Summary: In some cases, KDE Partition Manager does not check if there is (big) available space
Product: [Applications] partitionmanager Reporter: Ganton <kubry>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ganton 2024-01-16 12:02:29 UTC
SUMMARY
In some cases, KDE Partition Manager does not check if there is (big) available space . The problem is easily (and safely :-) reproducible using a virtual machine.

STEPS TO REPRODUCE
- "Clone" an existing VirtualBox machine. Make sure that it's "switched off",
- as they say in <https://askubuntu.com/questions/88647/how-do-i-increase-the-hard-disk-size-of-the-virtual-machine/1052694#1052694> to increase the size of the "hard disk" of the VirtualBox machine:
    1) go to the "Virtual Media Manager" of VirtualBox:
        - in VirtualBox 6:
            click File -> Virtual Media Manager ...
        - in VirtualBox 7: 
            click in File -> Tools -> Virtual Media Manager ...
    2) select your disk, and click Properties. Now just move the slider at the bottom or write the value you want for the size and click "Apply" when you’re done,
- start the VirtualBox machine,
- execute KDE Partition Manager, in its left part, see that the sizes stay the same as before the change...
- close KDE Partition Manager,
- execute
    sudo parted -l
see a message like:
    Warning: Not all of the space available to /dev/sda appears to be used, you can
    fix the GPT to use all of the space (an extra 139947424 blocks) or continue with
    the current setting? 
    Fix/Ignore? 
press F.
- execute KDE Partition Manager, in its left part, check that the sizes are the correct ones (so the user can resize partitions, etc.),

OBSERVED RESULT
- The user has to know that something like `sudo parted -l` has to be executed, etc.

EXPECTED RESULT
- KDE Partition Manager should check that situation, warn the user, make changes, etc. so people do not have to execute `sudo parted -l` and know all of that. It could work (for example) like Gparted does in those cases.  Well, thanks for KDE Partition Manager!

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 23.10
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-14-generic (64-bit)
Graphics Platform: X11
Memory: 3.8 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: innotek GmbH
Product Name: VirtualBox
System Version: 1.2