Re: rescue corrupted luks header?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Bowen <kevin@...> writes:

> 
> > //FORMAT LOOP DEVICE
> > cryptsetup luksFormat /dev/loop0
> 
> For this to work, don't I need to make sure I format the loop device
> specifying the same cipher as my real device?

That is true that you need to have the same cipher/format.  cryptsetup by
default uses that same cipher I believe. Run the following command on both your
corrupted partition and the loop device to make sure the non-corrupted bytes are
the same, namely the cipher name and cipher mode.

# dd if=/dev/sda3 bs=1 count=104 | hexdump -C
AND THE FOLLOWING FOR THE LOOP DEVICE
# dd if=/dev/loop0 bs=1 count=104 | hexdump -C

Let me know if you need any more help, hopefully we can get you fixed. Good luck!

-Bill


---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux