Results 1 to 2 of 2

Thread: Resizing Encrypted Luks partition from 12.04 ( No LVM )

  1. #1
    Join Date
    Jul 2006
    Beans
    14

    Resizing Encrypted Luks partition from 12.04 ( No LVM )

    I setup whole disk encryption with the alternative installer on 12.04, and it seems to have gone with using an encrypted partition rather than an LVM.

    If I follow the guide at:
    help.ubuntu.com/community/ResizeEncryptedPartitions

    None of the VG commands do anything. All I'm left with after I initialize the disk is a device /dev/mapper/sda2_crypt. I can mount that and happily see my filesystem (though oddly, fdisk doesn't report anything on it).

    I have 3 partitions - sda1 which is boot, sda2 which is my luks partition, and then sda3 which is a partition I had intended to use for windows, and am deciding to just merge it with my linux partition.


    I feel I have to enlarge the sda2 partition, then enlarge the crypt of it? That's where I get lost.

    Help Please?!

  2. #2
    Join Date
    Sep 2012
    Beans
    21

    Re: Resizing Encrypted Luks partition from 12.04 ( No LVM )

    If you have a external hdd or flash drive that can hold the files on your luks partition, I would recommend creating a tarball of that filesystem with something like this from a Ubuntu liveCD(as root)...
    Code:
    cd /media/encryptedfs/
    tar -cvzpf /media/ExternalHdd/fs.tar.gz *
    blkid > /media/ExternalHdd/fsuuids.txt
    Then you could delete the partition and create a new one that fills up the space and once you do that you re-create the luks partition using the name uuid and then re-create the filesystem using its uuid and name.
    Then it is as simple as
    Code:
    tar -xvzpf /media/ExternalHdd/fs.tar.gz -C /media/encryptedfs/

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
  •