Recovery Linux: How to mount LVM Partition
After boot from recovery live CD, you went to mount the disk into /mnt and you get this error:
mount: unknown filesystem type 'LVM2_member'
Solution:
type lvscan to see what the status of the lv drive is:
adi:~ # lvscan
ACTIVE '/dev/system_21747/LogVol0' [2.00 GB] inherit
ACTIVE '/dev/system_21747/LogVol1' [24.50 GB] inherit
ACTIVE '/dev/system_21747/LogVol2' [512.00 MB] inherit
ACTIVE '/dev/system_21747/LogVol4' [30.81 GB] inherit
ACTIVE '/dev/system_21747/LogVol5' [136.75 GB] inherit
ACTIVE '/dev/system_21747/LogVolHome' [70.09 GB] inherit
If your status = ACTIVE, you can mount at this point BUT if status = INACTIVE you must activate first!
Type vgchange -ay and check again: lvscan. If status = ACTIVE, mount that drive you want to recover.
mount /dev/system_21747/LogVol1 /mnt
/dev/system_21747/LogVol1 is where my web file stored like /srv/www/htdocs
Related Posts:
About this entry
You’re currently reading “Recovery Linux: How to mount LVM Partition,” an entry on Hariadi.Org
- Published:
- 10.05.10 / 11am
- By:
- Hariadi Hinta