[Wylug-help] Mounting LVM partition - Re: SATA HDD in an external case over USB - 2 partitions

Gary Stainburn gary.stainburn at ringways.co.uk
Thu Jun 24 14:43:18 UTC 2010


On Thursday 24 June 2010 15:31:47 Stephen wrote:
> lvscan
>
> to scan the lvm
>
> vgdisplay to make sure the volume group has been detected
>
> lvdisplay to see if the logical volume has been detected
>
> then do a mount /dev/<volumegroupname>/<logicalvolumename> target
>

[root at dcomp5 ~]# lvscan 
  inactive          '/dev/vg_gary/lv_root' [174.39 GiB] inherit
  inactive          '/dev/vg_gary/lv_swap' [4.91 GiB] inherit
[root at dcomp5 ~]# lvdisplay 
  --- Logical volume ---
  LV Name                /dev/vg_gary/lv_root
  VG Name                vg_gary
  LV UUID                rnpFB6-o5Q1-GmzM-yUoo-YE2B-vZIj-PjwdJh
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                174.39 GiB
  Current LE             44644
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/vg_gary/lv_swap
  VG Name                vg_gary
  LV UUID                kHs6LY-St15-bpK7-O3Y5-0wV9-ffmY-iGstmS
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                4.91 GiB
  Current LE             1256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
[root at dcomp5 ~]# mount -t ext3 /dev/vg_gary/lv_root /media/linux/
mount: special device /dev/vg_gary/lv_root does not exist
[root at dcomp5 ~]# 

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



More information about the Wylug-help mailing list