AssureTech
May 6th, 2013, 02:03 AM
I am currently running CentOS 6.x on my primary workstation. I want to replace CentOS with Ubuntu after I found that Ubuntu has better driver support and software repositories.
I booted up my workstation with the latest Ubuntu 12.10 Live to test and see if Ubuntu will recognize my CentOS encrypted luks container and determine whether or not I can replace CentOS with Ubuntu. My system root and home partitions are logical volumes stored in a luks container that was originally created with Red Hat's Partitioning Tool.
I discovered that Ubuntu's Partitioning Tool does not recognize Red Hat's encrypted luks container and will not allow Ubuntu to be installed onto an existing logical volume. Instead of recognizing Red Hat's partition scheme, Ubuntu's Partitioning Tool tried to recalculate the luks container as "free space". I clicked "revert", but to no avail - the Ubuntu installer had already trashed my partition table. I then clicked "quit" to exit out of the Advanced Partitioning Tool window.
I tried to open the luks container, but Ubuntu's Partitioning Tool resized the container to below the Payload Offset's boundary and therefore the encryption failed. I then used fdisk to recreate the partition table that the luks container is held in, starting at the same cylinder, but with the full size of the original container. I can now successfully use "cryptsetup luksOpen /dev/sda2 crypt" to open the luks container, but my logical volumes have vanished (/dev/mapper/crypt is detected as "unknown"). All my critical data stored on my home partition is unavailable.
Can someone who is knowledgeable about the ins and outs of Quantal Quetzal's Advanced Partitioning Tool please inform me as to exactly what this partition tool did when it recalculated my luks container as free space and why the "revert" option does not function correctly. It appears this is a serious bug in Quantal Quetzal's Partitioning Tool.
I need someone who is knowledgeable with LVM to walk me through the steps of recovering my logical volumes.
Thanks for any help with this matter.
I booted up my workstation with the latest Ubuntu 12.10 Live to test and see if Ubuntu will recognize my CentOS encrypted luks container and determine whether or not I can replace CentOS with Ubuntu. My system root and home partitions are logical volumes stored in a luks container that was originally created with Red Hat's Partitioning Tool.
I discovered that Ubuntu's Partitioning Tool does not recognize Red Hat's encrypted luks container and will not allow Ubuntu to be installed onto an existing logical volume. Instead of recognizing Red Hat's partition scheme, Ubuntu's Partitioning Tool tried to recalculate the luks container as "free space". I clicked "revert", but to no avail - the Ubuntu installer had already trashed my partition table. I then clicked "quit" to exit out of the Advanced Partitioning Tool window.
I tried to open the luks container, but Ubuntu's Partitioning Tool resized the container to below the Payload Offset's boundary and therefore the encryption failed. I then used fdisk to recreate the partition table that the luks container is held in, starting at the same cylinder, but with the full size of the original container. I can now successfully use "cryptsetup luksOpen /dev/sda2 crypt" to open the luks container, but my logical volumes have vanished (/dev/mapper/crypt is detected as "unknown"). All my critical data stored on my home partition is unavailable.
Can someone who is knowledgeable about the ins and outs of Quantal Quetzal's Advanced Partitioning Tool please inform me as to exactly what this partition tool did when it recalculated my luks container as free space and why the "revert" option does not function correctly. It appears this is a serious bug in Quantal Quetzal's Partitioning Tool.
I need someone who is knowledgeable with LVM to walk me through the steps of recovering my logical volumes.
Thanks for any help with this matter.