I recently upgraded my laptop to the latest Ubuntu 8. The upgrade process was easy and quick however after the reboot I was unable to access my home-directory. I have a separate partition on which /home is mounted. This partition is encrypted with cryptsetup.
When I start the cryptdisk daemon it returns an error:
* Starting remaining cryptodisks...
mount: special device /dev/mapper/cryptohome does not exist
Checking the status with cryptdisk doesn’t show any errors:
/dev/mapper/cryptohome is active:
keysize: 256 bits
offset: 0 sectors
size: 40949685 sectors
And the device is there:
ls -l /dev/mapper/
crw-rw---- 1 root root 10, 63 2008-07-12 17:20 control
brw-rw---- 1 root disk 254, 0 2008-07-12 17:47 cryptohome
Crypttab is also configured correctly:
Mounting the /home partition on /dev/mapper/cryptohome (as root) returns :
mount: wrong fs type, bad option, bad superblock on /dev/mapper/cryptohome,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
with these errors in dmesg
[ 1966.915329] VFS: Can't find ext3 filesystem on dev dm-0
Creating new encrypted partitions (with similar settings) works like a charm. The partition worked perfectly for months before the upgrade and currently I don’t have any clue on how to access my encrypted data. Any help would be highly appreciated.
The problem was not tied to cryptsetup but to something entirely different. My passphrase contains a number of special characters. My keyboard layout was changed to something without the “Ã‚Âµ ÃƒÂ¹ ÃƒÂ§^” characters. I didn’t notice this during the test because then I was using a rather simple passphrase.