LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-01-2009, 06:37 PM   #1
tmerriam
Member
 
Registered: Dec 2008
Distribution: slackware
Posts: 50

Rep: Reputation: 16
Kubuntu 9.04 and Encrypted LVM


It seems to me that a lot of people are raving about Ubuntu, so I thought I would give it a try. However, I'm running into some serious issues just getting the thing installed. I'm trying to get an LUKS+LVM setup I was using under Slackware.

Using the standard disc, I can't even connect to the network out of the box. Once I load the needed packages for wicd from a flash drive, I can connect to the internet and install cryptsetup, lvm, etc.... However, when I get to the partition setup part of the install, the window gets set to some ridiculous size, much taller than my display. I can't use it and resizing doesn't help. On to alternate....

The alternate disc, however, is unable to even MOUNT the lvm volumes. I modprobed the same modules I used on the desktop disc, but cryptsetup returns "No key available with this password" I really REALLY don't want to use the installer to recreate the volumes because a: I want to choose the cipher, and b.) I don't feel that wiping the disc and installing over existing partitions is acceptable practice. There should be a way to use the existing partitions. If the install gets messed up, I want to be able to reinstall the OS and leave my data alone.

My question, basically, is how do I install Kubuntu 9.04 on LUKS+LVM? I don't care what disc I have to use. Any help or suggestions would be greatly appreciated.
 
Old 05-02-2009, 12:59 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
Here are some recent articles on LVM that were on distrowatch weekly. The 2nd one discusses using LVM on several distros and includes a discussion on installing Ubuntu on LVM using the alternate install CD:
http://distrowatch.com/weekly.php?is...090309#feature
http://distrowatch.com/weekly.php?is...090316#feature
 
Old 05-02-2009, 09:55 AM   #3
tmerriam
Member
 
Registered: Dec 2008
Distribution: slackware
Posts: 50

Original Poster
Rep: Reputation: 16
Thanks, but while those articles are interesting, they don't solve the problem. My problem isn't that I can't create the LVMs, but that I can't USE them. More specifically, the alternate install disc can't open the LUKS.

Code:
cryptsetup luksOpen /dev/sda2 pvcrypt
That fails with "No key available with this password", which is an error that indicates one of the needed kernel modules is not loaded. I've already loaded dm-mod, aes, sha256, dm-crypt, etc.... but cryptsetup still returns that error. My question now I guess is what kernel modules do I need to use on the alternate disc to get cryptsetup to work?
 
Old 05-02-2009, 04:33 PM   #4
tmerriam
Member
 
Registered: Dec 2008
Distribution: slackware
Posts: 50

Original Poster
Rep: Reputation: 16
OK, I gave up trying to open the existing LUKS and decided to make a new one. The problem now, that doesn't work either!

Quote:
cryptsetup -y --cipher aes-xts-plain -key-size 512 luksFormat /dev/sda2
complains that it cannot "...setup dm-crypt key mapping." and that I should check the kernel support for the cipher. aes is already loaded though. I really don't understand this, because this is the exact same command I used when I created the LUKS on the desktop disc in the first place. The command I really want to use is....


Quote:
cryptsetup -y --cipher aes-xts-plain -key-size 512 -h sha512 luksFormat /dev/sda2
using a different hash algorithm. That doesn't work either....
 
  


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
Encrypted root with LUKS on LVM and RAID-1: How? gargamel Suse/Novell 5 03-20-2010 04:30 PM
Encrypted LVM mashcaster Linux - Security 1 12-19-2008 11:17 AM
LXer: Encrypted Root LVM LXer Syndicated Linux News 0 05-14-2008 01:00 PM
Ubuntu 7.10 on encrypted LVM - boots not! taylorkh Ubuntu 6 01-27-2008 08:06 AM
Encrypted LVM needs a initrd Zmyrgel Slackware 3 09-10-2006 09:46 AM


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

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