LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-03-2007, 03:03 PM   #1
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Rep: Reputation: 30
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.
 
Old 11-03-2007, 03:14 PM   #2
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
Bah so apparently the partitions weren't opened. So I used the command:
Code:
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
Code:
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?
 
Old 11-03-2007, 07:54 PM   #3
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Review: Protecting Data with Encrypted Linux Partitions Part 2 LXer Syndicated Linux News 0 06-22-2007 04:46 AM
LXer: Tutorial: Protecting Data with Encrypted Linux Partitions LXer Syndicated Linux News 0 06-14-2007 07:17 PM
Accessing encrypted partitions from OpenBSD avallach *BSD 2 06-12-2007 05:04 AM
Creating and using encrypted partitions as non-root v00d00101 Linux - Security 3 06-25-2006 05:31 PM
Hacking the initrd for encrypted partitions sonicbuddha Linux - Security 2 12-20-2005 08:23 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration