LVM: mount dari usb harddisk: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Created page with "Sumber: http://www.tuxradar.com/answers/296 Mount LVM partitions from an external hard drive Q Is it possible, and if so how, to mount LVM partitions from an external hard..."
 
Onnowpurbo (talk | contribs)
No edit summary
 
Line 1: Line 1:
Sumber: http://www.tuxradar.com/answers/296
Sumber: http://www.tuxradar.com/answers/296


apt-get install lvm2




Mount LVM partitions from an external hard drive
fdisk -lu


Q Is it possible, and if so how, to mount LVM partitions from an external hard drive? I'm thinking of my old Fedora system drive from which I would like to retrieve a single file without having to boot from it.


A As long as you have the LVM tools installed on the distro you are booting, you can mount LVM partitions from any disk (I even did it from a USB key once). Run
pvscan


vgscan
vgchange -a y


as root and all the partitions should have devices created in the form /dev/volumegroup/logicalvolume, which you can then mount in the usual way:
vgscan
 
 
vgchange -a y
 
 
 
lvscan
 
ACTIVE ‘/dev/VolGroup00/LogVol00’ [72.44 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01’ [1.94 GB] inherit
 
 
mount /dev/VolGroup00/LogVol00 /mnt
 


mount /dev/volumegroup/logicalvolume /mnt/somewhere




Line 23: Line 34:


* http://www.tuxradar.com/answers/296
* http://www.tuxradar.com/answers/296
* https://quonn.wordpress.com/2010/12/01/how-to-mount-lvm-partition-on-ubuntu/

Latest revision as of 03:22, 23 July 2017

Sumber: http://www.tuxradar.com/answers/296

apt-get install lvm2


fdisk -lu


pvscan


vgscan


vgchange -a y


lvscan
ACTIVE ‘/dev/VolGroup00/LogVol00’ [72.44 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01’ [1.94 GB] inherit


mount /dev/VolGroup00/LogVol00 /mnt




Referensi