Page 1 of 1

How to find a partition's last sector

Posted: 19 Oct 2025, 13:41
by wuezwuez
I have erroneously resized a partition and want to find out the original size, exactly the number of the first and last sector of the original partition. I know that Testdisk can report these numbers for established partitions, but can it also find out the last sector for the original partition size?

Re: How to find a partition's last sector

Posted: 20 Oct 2025, 13:48
by recuperation
wuezwuez wrote: 19 Oct 2025, 13:41 I have erroneously resized a partition and want to find out the original size, exactly the number of the first and last sector of the original partition. I know that Testdisk can report these numbers for established partitions, but can it also find out the last sector for the original partition size?
TestDisk finds partitions that may have been lost and lists them for you. This list can as well include false positives. You will have to check each partition proposal. For partitions that come with a file system TestDisk understands you have the function "list files".

Resize operations are a different issue.
As you can resize a partition in a way that erases all evidence of an older partition there is no general answer to your question.
Furthermore, your implied statement "but can it also find out the last sector for the original partition size?" is wrong as the word "also" implies that the first sector of the partition of the partition can always be found. That is not the case.