4 ms·
> # this was a mistake... That's not an unfixable mistake: sda3 is at the end of the partition table, so if it's deleted, sda2 can be safely resized offline. F
by twr 10y ago
> # this was a mistake...
That's not an unfixable mistake: sda3 is at the end of the partition table, so if it's deleted, sda2 can be safely resized offline. For example,
parted /dev/sda rm 3
parted /dev/sda "resizepart 2 -0"
resize2fs /dev/sda2 # for ext2/3/4
And then you can create a swap file or volume on sda2, so long as it isn't on btrfs.