How to find a partition's last sector
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
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
How to find a partition's last sector
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?
-
- Posts: 3067
- Joined: 04 Jan 2019, 09:48
- Location: Hannover, Deutschland (Germany, Allemagne)
Re: How to find a partition's last sector
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".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?
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.