How to mount LVM partition in Debian/Ubuntu
How to mount LVM partition that just appended into system? Just follow below steps and get it!
- Install package:lvm2 if you did not enable it.
$ sudo apt-get install lvm2 - Load the necessary module: dm-mod.
$ sudo modprobe dm-mod - Scan LVM volumes in your system.
$ sudo vgscan
or
$ sudo pvs - Activate the LVM volume.
$ sudo vgchange -a y [LVM Group] - Find the logical volume.
$ sudo lvs
or
$ sudo lvdisplay /dev/[LVM_group_name] - Mount the logical volume you want access it.
$ sudo mount /dev/mapper/[LVM_group_name]-[LVM-logical-volume-name] /mnt -o ro,user - You can access the LVM partition now in /mnt.
Comments
Post a Comment