LVM shows during install, but lvm2 package isn't installed.

Bug #1084115 reported by XXXX XXXX on 2012-11-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint

Bug Description

When installing Linux Mint 14, there is native support for LVM. When partitioning the hard drive, the user can clearly see, select and format logical volumes, including putting the /boot partition into a logical volume. However, the installer does not appear to install the lvm2 package.

Upon reboot after a successful installation, if the user chose to put the root partition on LVM, the boot will fail shortly after GRUB as unable to find the root partition. This can be worked around by mounting all relevant folders, chroot-ing into the installed system from another system, and installing the lvm2 package. After that the system functions normally.

Seems a pretty simple fix: just have lvm2 installed by default. A deeper, more thorough solution would be to eventually let the user choose the defaultly installed packages in Mint, but I understand that's a little farther up the totem pole than this issue.

Toderel Adrian-Aurel (totedati) wrote :

i also stomp over this bug! look like lvm2 package is here, in livedvd session, so you can see, create, remove lvm partitions at install phase, but after that, at cleanup phase lvm2 packages is simply removed because is in live-* blablabla list!!

silly indeed but true!

as a stopgap you need to follow things like this:

Howto install LMDE with LVM

with an emphasis to the last steps:
« -Continue with the rest of the install like normal,
-DON'T REBOOT YET! At the end of the install, choose 'Continue testing'

0. Set up a chroot:

Code: Select all
    sudo mount /dev/mintvg/root /target
    sudo mount /dev/mintvg/home /target/home
    sudo mount --bind /dev /target/dev
    sudo mount --bind /dev/pts /target/dev/pts
    sudo mount --bind /proc /target/proc
    sudo chroot /target

11. Install LVM2 inside the chroot:

Code: Select all
    apt-get update
    apt-get install lvm2

yea! you need to reinstall again lvm2 inside a proper chroot!

Toderel Adrian-Aurel (totedati) wrote :

in my particular case i translate that recipe in this steps:

sudo -s
cd /
mkdir chroot

# if you stomp over « No address associated with hostname » error
# in « apt-get update » phase
cp /etc/resolv.conf /chroot/etc/

mount /dev/vg1/root /chroot
mount /dev/sdb1 /chroot/boot
mount /dev/vg1/totedati /chroot/home/totedati
mount /dev/vg1/usr_local /chroot/usr/local

mount --bind /dev /chroot/dev
mount --bind /dev/pts /chroot/dev/pts
mount --bind /proc /chroot/proc

sudo chroot /chroot

apt-get update
apt-get install lvm2

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers