By recover you mean you can use it again as normal, not recover the files, right? Try

dd count=1 bs=512 if=/dev/zero of=/dev/sdb

On Monday, 10 June, 2013 02:32 PM, Packets wrote:
I encrypted my usb drive. After the encryption, I tried to format it
using gparted gui but there was an error so I assume everything is ok.
I backup my files to it. Then I reformat my ubuntu workstation. After
the newly installed workstation boots up, I could no longer mount the
flash drive. (surprise!) I'm sure I input the correct passphrase. The
error is the below.

nelson@kazekage:~$ sudo cryptsetup luksOpen /dev/sdb1 test
[sudo] password for nelson:
Enter passphrase for /dev/sdb1:
No key available with this passphrase.
Enter passphrase for /dev/sdb1:

I did a research and they something about header but looks like the
header is intact.

nelson@kazekage:~$ sudo cryptsetup luksDump /dev/sdb1
LUKS header information for /dev/sdb1

Version: 1
Cipher name: aes
Cipher mode: cbc-essiv:sha256
Hash spec: sha1
Payload offset: 4096
MK bits: 256
MK digest: 8f 6f 4e ba c1 c2 70 3b 26 e0 41 8c 9b de d4 4b c6 29 65 e4
MK salt: 84 c1 5e 2c 70 d6 2a 0f 2e 79 7b 3f 43 16 60 44
96 d8 bf 93 a7 6e 4a eb a9 94 fd 2d 0d b7 c6 f7
MK iterations: 36750
UUID: f6289fce-a74b-40d8-b93f-e7a210afbf54

Key Slot 0: ENABLED
Iterations: 147405
Salt: 43 d7 f8 b8 2f 0e 51 80 f6 9f 10 72 7e 0a bf 7d
ae 25 89 9a 59 87 62 85 ed 46 73 57 da 47 74 9d
Key material offset:    8
AF stripes: 4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED

Is there any other way I could decrypt the flash drive? I tried to add
a key to Slot 1 but it doesn't permit me because of the error.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to