Ubuntu – How to install into existing LVM logical volumes

debianlvm

I have a Debian Squeeze install, and I'd like to switch to Ubuntu 11.10.

In my current setup, I have 2 HDDs, the first 250GB and the second 500GB.

The 250GB drive just has a NTFS partition with Win7 on it.

The 500GB drive has 397GB of NTFS, 1GB ext3 which I'm using as the /boot partition, and the rest in an extended partiton contaning an LVM2 partition which is the only physical vomume in my LVM volume group.

Logical volumes are as follows:

  • home – 46GB, mount point /home
  • rd – 18.62GB, mount point /
  • swap – 2.79GB

I'd like to install ubuntu into the existing boot partition and rd logical volume. The installed doesn't seem to understand LVM.

How do I do this?

Best Answer

Easiest way, IMO, is to use the alternate CD, the desktop or live CD does not support LVM.

The alternate CD does not run "live", but the installer is easy enough if you are migrating from debian.

Edit - small clarification, you can install lvm when running the desktop CD, and you can then mount your LVM, but I do not think the installer, ubiquity, supports LVM.

You could use the live CD , install LVM, then install ubuntu manually into a chroot, but probably (for most) more hassle then the alternate CD.