Pavel Panchekha

By

Share under CC-BY-SA.

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