How to mount a LVM partition on Ubuntu?
#fdisk -l
/dev/sdb1 * 1 9702 77931283+ 8e Linux LVM
I tried the following command:
#mkdir /media/backup
#mount /dev/sdb1 /media/backup
mount: unknown file system 'LVM2_member'
How do I mount it?
Solution 1:
I found the solution
#pvs
/dev/sdc5 intranet lvm2 a- 372,37G 0
# lvdisplay /dev/intranet
LV Name /dev/intranet/root
#mount /dev/intranet/root /media/backup
Solution 2:
You probably want to look at the *scan commands, pvscan, vgscan and lvscan. This will search for the various lvm components. If /dev/sdb1 is a physical volume that has a volume group with a logical volume, it should show up. If lvscan produces something like:
ACTIVE '/dev/vg00/home' [9.00 GB] inherit
Then you can mount /dev/vg00/home as /home.