You are not logged in.

#1 2013-03-21 10:50:36

ignorant
Member
Registered: 2012-06-09
Posts: 50

[Solved] LUKS-encrypted device won't mount with cryptsetup

So I bought a new external disk, encrypted it using LUKS and cryptsetup, unmounted/unmapped it and mounted/mapped it again to make sure it work, and then copied all of my data over to it. Everything worked great.

I was going to reboot, so I umounted the partition, and luksClose'd the device. After rebooting, when I try to run cryptsetup again, I get this:

$ cryptsetup luksOpen /dev/sdc1 usb
[sudo] password for user: 
Device /dev/sdc1 doesn't exist or access denied.
$ sudo cryptsetup luksDump /dev/sdc
[sudo] password for user: 
Device /dev/sdc is not a valid LUKS device.

/dev/sdc exists, just as it did before. dm-crypt is modprobed. Everything that is necessary is here. Is there a possibility there some kind of write error which broke everything?

I am grateful for anyone willing to help. This device has a lot of my important data on it. If there was some kind of disk error, is there anyway to recover the data?

edit: I'm also getting the same exact results for the other disk I encrypted using LUKS.

Last edited by ignorant (2013-03-24 00:09:04)

Offline

#2 2013-03-21 12:21:01

nagaseiori
Member
Registered: 2012-09-22
Posts: 71

Re: [Solved] LUKS-encrypted device won't mount with cryptsetup

Try running `blkid`.

Offline

#3 2013-03-21 12:35:52

ignorant
Member
Registered: 2012-06-09
Posts: 50

Re: [Solved] LUKS-encrypted device won't mount with cryptsetup

Edit: I see what went wrong now. I forgot to write a new partition table on /dev/sdc before I created the filesystem. Fixed now.

Last edited by ignorant (2013-03-24 00:08:49)

Offline

Board footer

Powered by FluxBB