Results 1 to 3 of 3

Thread: Possible to change partition layout in ubiquity (12.10) with full disk encryption?

  1. #1
    Join Date
    Aug 2012
    Beans
    11

    Possible to change partition layout in ubiquity (12.10) with full disk encryption?

    I'd like to use LVM and full disk encryption with Ubuntu 12.10, but I'd also like to specify additional partitions (like /home, /tmp, etc), but I can't seem to do that when selecting "Encrypt the new Ubuntu installation for security" and "Use LVM with the new Ubuntu installation".

    The ability to manually review and change the partition layout is only possible if I select "Something else".

    Am I missing something in the installer, or is it not possible to manually review/change the layout if I select full disk encryption? If it's not possible, how and when could I set up these extra LVM partitions?

  2. #2
    Join Date
    Feb 2013
    Beans
    1

    Re: Possible to change partition layout in ubiquity (12.10) with full disk encryption

    Greetings!

    I found this thread with no answers via search results. I'll add my questions here, since they're virtually identical. I'm interested in setting up xubuntu with full disk encryption using LUKS+LVM. There should be 2 partitions on the HDD, first one is for /boot and second one is for dm-crypt. Ontop of the LUKS device I'd like to setup LVM and use it to create separate partitions for i.e. /home, /var, /var/log, swap, etc.

    The xubuntu installer does not seem to offer any advanced configuration options. There are a few checkboxes, but the manual partitioner doesn't seem to allow me to setup more than one partition inside the LUKS device. In fact I think it doesn't use LVM at all - pvscan, vgscan, lvscan don't show any results.

    How can I setup xubuntu with a custom HDD encryption/partition setup? I've seen some people suggest to use an alternate CD or a miniCD. Will I get the same xfce desktop as with xubuntu, if I use the miniCD? If not, what steps are needed to get an XFCE desktop? How can I get a plymouth splash screen asking me for PW at boot?

    Best regards!


    EDIT: I've just tried the miniCD image. It's a network installation media. The operating system is currently installing/downloading, and the setup allowed me to customize the partitions the way I wanted to - the LUKS/LVM was totally configurable unlike in ubiquity! I'll see if I can get the desktop going.

    EDIT2: Got it. XFCE is running just fine, but there are some minor bugs I'll have to address.

    ADDITIONALLY: Forum bug report: This forum doesn't seem to allow me to preview my post, if I block access or javascript to "yahooapis.com". It errors out and tells me that the message I entered is too short. For security/safety reasons I block requests and javascript by default using browser addons like NoScript and RequestPolicy.
    Last edited by dwewer; February 8th, 2013 at 08:17 PM.

  3. #3
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,089
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Possible to change partition layout in ubiquity (12.10) with full disk encryption

    Another way to do it would be to:
    1. Partition a disk with a small /boot partition and a larger partition for encryption and in which to base the logical volumes. You can use GParted in the 12.10 LiveCD for partitioning.
    2. Encrypt the larger partition using command line tools.
    3.. Set up your LVM using command line tools or enabled the universe repository and install system-config-lvm, (Logical Volume Manager), which is a GUI application similar to GParted, but for managing LVM.
    4. Run the 12.10 installer and choose 'manual partitioning', although the 12.10 CD's installer lacks the ability to do everything with encrypted LVM, at least it can recognize logical volumes when they have already been created and you get the installer to assign mount points for them and install into them, you can have your operating system split up into as many volumes as you have prepared.
    5. Make the new operating system bootable by chrooting into it and doing the following,
    (a) add an /etc/crypttab file
    (b) edit /etc/initramfs-tools/modules
    (c) create a new initrd.img

    Useful links:
    'EncryptedFilesystemsViaUbiquity' - Ubuntu Community Docs,
    'Encrypted Filesystem LVM How-to' - Ubuntu Community Docs, see especially this part: final preparation.
    ' how to chroot, simple and fast', by taavikko - Ubuntu Web Forums
    How to Resize a LUKS Encrypted File System - bodhi.zazen - Ubuntu Web Forums
    Last edited by Herman; February 9th, 2013 at 12:29 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •