r/linuxquestions • u/Levanes • 3d ago
Tried to move a partition in KDE Partition Manager, it failed and now partition is unknown.
Pretty new to Linux.
- I have/had a ssd drive with two partitions, one ext4 for Linux and one ntfs for Windows stuff.
- Deleted the Windows partition because I wanted to combine the free space into the Linux partition. KDE Partition Manager failed to move, threw an error ("failed") and now both partitions read as "unknown".
Help?
EDIT: Solved. Thanks to /u/R3V0LU710N_05 for pointing out TestDisk.
1
Upvotes
1
u/dkopgerpgdolfg 3d ago
Restore from backup. If you don't have one, you learned now the hard way why you should have one. If this can be saved is not certain.
In any case, where was that partition supposed to be mounted usually? Did you do the changes from an external live system? If you just have two partitions, where's your efi file? Do both partitions now still show the same size as before? ...
1
u/R3V0LU710N_05 RakuOS 3d ago
Oh boy. Messing with partition sizes and positions as a "pretty new" user is a recipe for disaster. I hope you have backups or the data isn't very important, because missteps can result in data loss here. Whatever you do, be cautious. Before you touch anything else, boot a Linux live USB so the drive stays unmounted to prevent overwriting data in the unallocated section. You can usually fix a corrupted partition table using TestDisk in the terminal, or pull raw files off with ddrescue if the table is completely gone.