Sorry mate I am not quite after this, I was more after repairing the entire disk as I suspected it might have caused the issue to not be able to resize the encrypted partition. It turns out (as mentioned previously) I had to mount and then unmount the partition and then I was able to resize the encrypted partition using gparted, all though this is very unclear so to what I have to mount and then unmount just to resize the partition.
Someday you will!
Edit: The title said How do i do full disk repairs?
Oh lol xD
Yes because originally I thought there were bad sectors or something.
In those cases it’s best to completely wipe the drive with a low level format or zero it out. Sure yes you can sometimes fix the drive but the way it works is it just marks the sector as bad so it won’t read and write to that area anymore. At least in Windows. I’m not sure how the Linux utilities handle that. Zeroing out a drive or writing random 010 etc usually restores the life of it for some time. Not always but sometimes. Again i’m speaking here about regular hard drives. SSD and newer m.2 drives are a whole different animal. But they too can be wiped. Like i said most new UEFI boards have it built right in. I’ve use it on mine a number of times.
I see, I will keep that in mind then, thanks
I wanted to also add something to this comment I made, it seems to be the same issue with just ext4
(without the LUKS encryption), so I apply the same techniques. It’s possible this issue happens as I force shutdown the VM.
It’s still unclear as to how this technique solves the resizing related issue.