FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    tbox Guest

    Lightbulb Howto mount a logical volume (LVM)

    The existing CentOS 5 box had some free disk space and so I decided to install FC7. Some where along the way, the bootloader was not selected during FC7 installation. At end of installation, when the box restarted, no FC7 is to be seen. This howto details steps to mount and access files from a disk having a logical volume group.

    From CentOS 5 I log on as root and did the following:

    1. Determine if FC7 was install on the disk
    Code:
    #fdisk -l /dev/sda
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        1275    10241406   83  Linux
    /dev/sda2            1276        2550    10241437+  83  Linux
    /dev/sda3            2551        2677     1020127+  82  Linux swap / Solaris
    /dev/sda4            2678        9729    56645190    5  Extended
    /dev/sda5            2678        2690      104391   83  Linux
    /dev/sda6            2691        4602    15358108+  8e  Linux LVM
    Yup I see it as /dev/sda6 the root partition and /dev/sda5 as the swap

    2. to determine what was the LVM details
    Code:
    #modprobe dm-mod
    #vgscan
      Reading all physical volumes.  This may take a while...
      Found volume group "VolGroup00" using metadata type lvm2
    # vgchange -a y VolGroup00
    # lvdisplay
      --- Logical volume ---
      LV Name                /dev/VolGroup00/LogVol01
      VG Name                VolGroup00
    . . .
      --- Logical volume ---
      LV Name                /dev/VolGroup00/LogVol00
      VG Name                VolGroup00
    3. Create the mount point
    Code:
    # mkdir /mnt/VolGroup00/01
    # mount /dev/VolGroup00/LogVol01 /mnt/VolGroup00/01
    4. Access and update the FC7 directory through /mnt/VolGroup00/01

    Reference the man pages for lvm, pvdisplay, vgdisplay, lvcreate, lvdisplay, lvextend
    -Nicholas-

  2. #2
    Wayne Guest
    Moved to "How-To Articles"

    Wayne

  3. #3
    Join Date
    Oct 2006
    Location
    Helsingborg, Sweden
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have just had my computers stolen and am in a panic. The new copmputer is partitioned in LVM volumes. I thing the Windows partition is called sda1. I have tried to mount by using fstab but it doesn't work. What am I doing wrong? I run under FC7.

    ABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0
    /dev/VolGroup00/sda1 /mnt/xp vfat auto 0 0

Similar Threads

  1. Extended Logical volume not seen on mount
    By exH2 in forum Using Fedora
    Replies: 2
    Last Post: 23rd July 2008, 05:31 PM
  2. How to mount a logical volume if group name is already in use
    By nick.stumpos in forum Guides & Solutions (Not For Questions)
    Replies: 4
    Last Post: 23rd November 2007, 01:10 PM
  3. LVM Logical Volume won't auto-mount
    By r0dzilla in forum Servers & Networking
    Replies: 4
    Last Post: 24th October 2006, 07:51 PM
  4. LVM Logical Volume won't auto-mount
    By r0dzilla in forum Servers & Networking
    Replies: 1
    Last Post: 23rd October 2006, 09:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •