How to find a partition's last sector

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Post Reply
Message
Author
wuezwuez
Posts: 1
Joined: 19 Oct 2025, 13:15

How to find a partition's last sector

#1 Post 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?
recuperation
Posts: 3067
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: How to find a partition's last sector

#2 Post 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.
Post Reply