The NZ Linux Resource

[klug] mounting Linux LVM format

klug.member.lancer at xoxy.net klug.member.lancer at xoxy.net
Tue Oct 4 10:58:13 NZDT 2005


Okay - Found out how to mounbt those LVM drives, and it's not that hard 
one you know the "trick" and as long as you're using a compatable distro 
(Knoppix CD won't do it but "Rescue Is Possible" will)...

So then - in two easy steps...

STEP 1:
As root, you first need to type the lvmdisplay command. This gives a lot 
of scary looking feedback as I have here:

=========
[root at localhost root]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                Mva5QJ-HfKU-IKMZ-HJAF-9Mfj-zniB-T0e17W
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                36.62 GB
  Current LE             1172
  Segments               1
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                9vHldZ-Lexf-PfYX-BT5x-Dnj3-PYGz-benvcd
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                512.00 MB
  Current LE             16
  Segments               1
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           253:1
=========
Notice there are two volumes here: LogVol00 and LogVol01 (going by "LV 
Name"). It turns out the second is my swapspace, which becomes apparent 
if I try to mount it, so no real biggie. The one I'm interested in 
mounting is /dev/VolGroup00/LogVol00

STEP 2:
Mount the desired volume in the usual manner:
[root at localhost root]# mount /dev/VolGroup00/LogVol00 /mnt/hdb

...and that's it :-)

Righto! Off to do some frantic backing up and the real install / network 
issues.



More information about the KLUG mailing list If you have any questions or comments about this page, email the Webmaster
Design Copyright © 1998-2005 Linux.net.nz