PDA

View Full Version : [ubuntu] 8.10 installer overwrites encrypted partitions?



ticks
November 6th, 2008, 11:27 PM
I tried to do a clean install on a laptop with four encrypted partitions (/, /home, swap and /var) running 8.04.

I chose manual partitioning, marked the partitions for encryption and went on to set them up. The installer asked me for a passphrase for each of the partitions (except for swap, since I don't use a key for that one) and I was returned to the partitioner. When I selected Finish.. the installer asked me if I wanted to overwrite the data on my partitions. Since I didn't, I went back and tried to find something to enable me to keep my partitions intact. No luck, so I aborted the installation. I sacrificed my root partition and now have a working installation. When trying to open the other partitions, this is what I get:



$ sudo cryptsetup luksOpen /dev/sda7 home
[sudo] password for ticks:
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.

$ sudo mount /dev/mapper/home tmp/
mount: you must specify the filesystem type

$ sudo mount -t ext3 /dev/mapper/home tmp/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/home,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

$ dmesg | tail
...
[ 2178.802915] VFS: Can't find ext3 filesystem on dev dm-1.


So, what I'd like to know, is there any way I can access my encrypted partitions or should I just go off and sulk for a bit?

graylion
November 17th, 2008, 08:23 PM
I'll come back to you when I am trying to install the same thing on an eeeePC next week. In the meantime i suggest sulking ;)

John Wiersba
July 5th, 2009, 09:09 PM
See HOWTO: install and reinstall on an encrypted LUKS/LVM system (http://ubuntuforums.org/showthread.php?p=7576717)
See HOWTO: re-install / upgrade over existing dm-crypt / LUKS system (http://ubuntuforums.org/showthread.php?t=1034910)