-   Ubuntu (
-   -   Installing to encrypted partitions? (

compu73rg33k 11-03-2007 03:03 PM

Installing to encrypted partitions?
I'm running the Kubuntu 7.10 DVD and downloaded cryptsetup and then partitioned hard drive into 5 partitions - /, /boot, /usr, /home, /swap. I then used cryptsetup to put LUKS encryption on /, /usr, /home, and /swap but left /boot unencrypted. I then made ext3 filesystems on /, /boot, /usr, /home and made swap on /swap. I then ran the graphical installer and chose Manual partitioner. However then it comes to the partitions and it finds the 5 different partitions, but they don't have mount points. I then edit the / partition, tell it to use as ext3 and mount under /, but then "Format?" gets checked and is uncheckable. Anyone know how to bypass this? I mean I'm guessing maybe I need to insert the password first or something.

compu73rg33k 11-03-2007 03:14 PM

Bah so apparently the partitions weren't opened. So I used the command:

sudo cryptsetup luksOpen /dev/sdax name
where x is 5-8 depending on the partition and then in the manual partitioner they came up. I changed the mount points from /dev/mapper/root, /dev/mapper/home, /dev/mapper/usr, to /, /home, and /usr respectively. Then when I clicked next, a window came up saying

the file system on /dev/mapper/root assigned to / has not been marked for formatting. File systems use by the system (/, /boot, /usr, /var) must be reformatted for use by this installer. Other file systems (/home,/media*,/usr;local, etc.) may be used without reformatting.
Hmm does that mean I have to encrypt it after I install and cannot make a fresh install to an encrypted partition? If so is there a command line way to copy the necessary image files and /root and then I guess find a list of programs to download?

compu73rg33k 11-03-2007 07:54 PM

Bah nevermind I think you have to install first, backup the partition, encrypt the partition, remake the filesystem, and then copy the backup files to the remade system after you open the partition backup with cryptsetup.

All times are GMT -5. The time now is 10:10 AM.