Attach LVM volume in linux
Created: 2018-01-20 23:13:52 | Last modified: 2018-06-04 02:21:40
| By: NovaAccess: Read | Visibility: Public | Views: 414 | Rating: +1 | Tags: lvm linux
Attach LVM volume in linux
How to attach an LVM partition in Linux
Boot Fedora 17.
Make sure lvm2 is installed:
$ sudo yum install lvm2
Load the necessary module(s) as root:
$ sudo modprobe dm-mod
Scan your system for LVM volumes and identify in the output the volume group name that has your Fedora volume (mine proved to be VolGroup00):
$ sudo pvscan
Scans the physical volume
$ sudo vgscan
Activate the volume:
$ sudo vgchange -ay VolGroup00
Find the logical volume that has your Fedora root filesystem (mine proved to be LogVol00):
$ sudo lvs
Create a mount point for that volume:
$ sudo mkdir /mnt/fcroot
Mount it:
$ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user
You're done, navigate to /mnt/fcroot and copy the files and paste somewhere else.