Resizing partition has done something wrong
I tried to shrink an NTFS partition sda2 by ~10GB. It looks like KDE Partition Manager may have calculated some values incorrectly during the process? The log is here:
It also forced a 'move to the right' by 512KiB, I tried a few times to deselect this but could not.
- initial ntfsresize check returns ok
- it looks like (the log does not contain the command it ran) it asked ntfsresize to resize the filesystem but ntfsresize thought the filesystem was already that size so did nothing?
- changed the partition's length to 1871708160
- changed the partition's start sector to 206848 - 512KiB to the right
- tried to move the filesystem to the new start sector, but the log says it moved 91392 blocks from/to the same sector 105906176
- uses dd to write 4 bytes to 28 bytes into the partition
- uses dd to write 4 bytes to 484 bytes from the end of the partition
- ntfsresize check says
NTFS signature is missing.
Questions:
- why did ntfsresize say the filesystem was already that size? The output of the earlier command shows it was 968,802MB.
- why did the 'move filesystem' move it to/from the same address - 105906176 to 105906176?
- what 4 bytes was it 'dd'ing?
Can this be reversed and the filesystem recovered? If the 'move filesystem' just overwrote bytes with themselves and wasn't destructive then changing the partition's start sector and length back to the previous values ought to restore it? As long as the 4 bytes that were dded didn't overwrite anything crucial?