Setting Disk Geometry for Noobs

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
Locked
Message
Author
beardstack
Posts: 2
Joined: 03 Nov 2020, 16:23

Setting Disk Geometry for Noobs

#1 Post by beardstack »

I am a complete noob. Following advice online it seems that I need to change the partition size because LUKS size can't be detected automatically. Testdisk sees my LUKS partition but doesn't see it takes the whole disk and it only appears as 2MB. I've tried to read up about cylinders and what not but that goes way over my head. Could someone please walk me through this?

Code: Select all

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org


Disk /dev/sdd - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512

Because these numbers change the way that TestDisk looks for partitions
and calculates their sizes, it's important to have the correct disk geometry.
PC partitioning programs often make partitions end on cylinder boundaries.

A partition's CHS values are based on disk translations which make them
different than its physical geometry. The most common CHS head values
are: 255, 240 and sometimes 16.




 [ Cylinders ]  [   Heads   ]  [  Sectors  ]  [Sector Size] >[    Ok     ]




                          Done with changing geometry

Locked