Encrypted /tmp fails after recent kernel upgrade
After a recent kernel upgrade to 2.6.32-5-amd64, I now get the following
when trying to mount an encrypted /tmp with dev/mapper:
$ sudo mount /tmp
mount: wrong fs type, bad option, bad superblock on /dev/mapper/tmp,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The error is complaining about a missing ext2 filesystem, which
dev/mapper should be creating anyway:
May 28 16:34:23 deltani kernel: [ 294.183700] VFS: Can't find an
ext2 filesystem on dev dm-1.
The /etc/fstab file contains:
/dev/mapper/tmp /tmp ext2 nosuid,nodev,relatime 0 0
The /etc/crypttab file contains:
tmp /dev/sda3 /dev/urandom tmp=ext2
An encrypted swap partition is being mounted the same way, more or
less, and is *not* failing with this error. What could be going on here,
and how can I fix it?
--
"Oh, look: rocks!"
-- Doctor Who, "Destiny of the Daleks"
Reply to: