Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the right way to fully re-partition my HDD (on a VPS -> no access to hardware), if there is currently installed a Debian Squeeze? I would like to create all encrypted LVM partitions, e.g.:



P.S. There is NO data I care about (even the OS).

share|improve this question
What is your question, it isn't clear? If you are going to wipe the installation, then you boot the VPS with the debian install disk and set up your partitioning during installation. – Paul Nov 19 '12 at 3:15
I didn't get how to do the partitioning scheme, as described above and set one of LVM encrypted partition to root (it is possible either normal ext2/3 or physical encrypted partition). Thats why I installed temporary Debian base system to re-partition it from the normal linux environment and not from the busybox one, where I needed to install all the staff (including fdisk, dpkg and apt-get myself). I don't know what did I wrong, but it was a kind of nightmare to handle one error after another and getting forward with millimeter steps. – static Nov 19 '12 at 3:22
I see. If you have space, then you can create a new partition and dm-crypt it, then duplicate your LVM volumes on it, and rsync each volume over to it. And update fstab on the new root. Then it is just a case of creating a new entry in grub has root pointing to the new encrypted root volume rather than the old one. If it doesn't work, you can boot the old one to figure it out. – Paul Nov 19 '12 at 4:02

You must log in to answer this question.

Browse other questions tagged .