Installing Ubuntu on LVM

From the Live CD, run:

sudo apt-get install lvm2
sudo vgchange -ay

Then, install Ubuntu the standard way. Once finished, do the following:

sudo mount /dev/mapper/[LVM root] /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /proc /mnt/proc
sudo mount -o bind /mnt /mnt/mnt
sudo mount /dev/[boot partition] /mnt/boot
sudo chroot /mnt

This gives you a shell within the new system. We need to set up LVM here:

sudo apt-get install lvm2
sudo update-initramfs -k all -u

By on . Share it—it's CC-BY-SA licensed.

Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author and do not necessarily reflect the views of the National Science Foundation.