Comment 32 for bug 428435

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote : Re: luks encrypted partition not detected or mounted automatically

I updated my original script to handle removing of swap signatures. I created the test image on jaunty with 16MB USB memory stick by first using mkswap followed by luksformat.

Make sure to read comment #24 before using!

And no, this will not work in jaunty. It's easiest to download karmic live-CD from http://releases.ubuntu.com/releases/9.10/ .

$ sudo python fix_superblock.py check swap_crypto_sig.img

Found 2 signatures on partition swap_crypto_sig.img:
    - crypto_LUKS
    - swap

$ sudo python fix_superblock.py fix swap_crypto_sig.img crypto_LUKS --force

Found the wanted signature from superblock.
adding swap remove handler
creating backup 'swap_crypto_sig.img_superblock_20091019123445_977941'
1+0 tietuetta sisään
1+0 tietuetta ulos
65536 tavua (66 kB) kopioitu0,000731936 sekunnissa, 89,5 MB/s
backup done.
Swap remove handler
SWAP signature 'SWAPSPACE2' found at offset 0xff6
Removing the signature...
Signature removed.

$ sudo python fix_superblock.py check swap_crypto_sig.img

Found 1 signatures on partition swap_crypto_sig.img:
    - crypto_LUKS