Just upgraded from 9.10 to 10.04 and cannot mount one of my partitions. It is encrypted/decrypted in the following fashion:
Code:
# dd if=/dev/random bs=4k count=1 | gpg -a --cipher-algo AES256 -c - > /mnt/usb/keys/fs.gpg
# gpg -q -o - /mnt/usb/keys/fs.gpg | cryptsetup -v -h sha512 -c aes-xts-plain -s 512 create crypto /dev/md1
# mkfs.ext4 /dev/mapper/crypto
# mount /dev/mapper/crypto /crypto
It has been this way for a long time, survived several release upgrades. Now when I decrypt it, I have to use gpg in one command to decrypt the key to a file, then use cat in a second command to pipe to cryptsetup, as such:
Code:
# gpg -q /mnt/usb/keys/fs.gpg
# cat /mnt/usb/keys/fs | cryptsetup -v -h sha512 -c aes-xts-plain -s 512 create crypto /dev/md1
Ok a pain, but no big deal. However, I can no longer mount the device:
Code:
# mount /dev/mapper/crypto /store/
mount: you must specify the filesystem type
This is how it's always been mounted. Well I know it's ext4, so I supplied that and was greeted with:
Code:
# mount -t ext4 /dev/mapper/crypto /store/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/crypto,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The only item in dmesg is:
Code:
[ 78.212761] EXT4-fs (dm-0): VFS: Can't find ext4 filesystem
What's the deal? How do I fix this?