Hi, I have a serious problem, and I hope you can help me out.
I had my /home partition encrypted: /dev/sda3 was an encrypted LVM volume (dm-crypt, LUKS) containing an ext3 filesystem that I used to mount under /home
I reinstalled my Ubuntu using the text-mode installer... I did a clean reinstall: I formated /dev/sda2 (the root partition, unencrypted) and I set /dev/sda3 to be used as a physical volume for encryption. I didn't "touch" the contents of the /dev/sda3 volume.
I assumed the installer would ask for the password for /dev/sda3 and then would allow me to mount without formatting the resulting /dev/mapper/sda3_crypt ext3 partition.
It did not. The installer asked me for new passwords for /dev/sda3... I put the same password I had before, but now... the data inside the volume is no longer an ext3 partition...
I don't know why...
Code:
# cryptsetup luksOpen /dev/sda3 sda3_crypt
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.
# mount /dev/mapper/sda3_crypt /home/
mount: you must specify the filesystem type
# mount /dev/mapper/sda3_crypt /home/ -t ext3
mount: wrong fs type, bad option, bad superblock on /dev/mapper/sda3_crypt,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# file -s /dev/mapper/sda3_crypt
/dev/mapper/sda3_crypt: data
What happened with my data? Can I recover it? What command did the Ubuntu/Debian installer issue when I chose "use /dev/sda3 as a physical volume for encryption" ?
Thanks and I wish you a happy new year!