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)
Try running `blkid`.
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)