Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.