Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had followed the this how-to on reducing the size of an encrypted (LUKS) partition.

Everything went fine until the fdisk session. In the disk utility, the volume shows up as "Unknown" as opposed to "Encrypted" and cryptsetup doesn't recognize it (luksDump shows nothing.) Resizing it to use the same number of sectors as before didn't fix the problem.

I found this question: How to recover a partition accidently deleted with fdisk (Linux)? – it suggests using testdisk.

Would testdisk be likely to be able to restore my partition? If so, how do I recover a lost LUKS partition? If not, what else might work?

share|improve this question

testdisk ended up working. The issue was that fdisk starts partitions at the first head and sector in a cylinder. Any tool that can start at an arbitrary offset should also work.

A messed-up partition table is not data loss.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .