I am covering how to mount an LVM volume within in a Debian Live CD.
I found myself in need of mounting an LVM environment inside of a Debian Live CD. It was not too terribly difficult, just not well documented anywhere.
The first step is to install LVM2.
sudo apt update; sudo apt install lvm2
Next we need to get the name of the volume group
That should dump out something like this:
PV VG Fmt Attr PSize PFree /dev/sdb1 counterstrike-vg lvm2 a-- <126.26g 0
The name of my volume group is
Now that we have the name of the volume group, in this case it is
counterstrike-vg, we need to activate it. In the following command you need to replace
counterstrike-vg with the name of your volume group.
sudo lvm vgchange -ay counterstrike-vg
If all went well that command should have put something out that looks like this
2 logical volume(s) in volume group "counterstrike-vg" now active
You should now be able to see your drives in
/dev/mapper, just as they should be. And can be mounted normally by using
sudo mount /dev/mapper/counterstrike--vg-root /mnt
I found a number of posts on how to do this, but none was complete. Now there is one that explains it.