Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

0 votes
401 views
401 views

After booting a rescue system (grml) I need to change the configuration of the original system. However, the original system uses LVM for managing the volumes. How can I mount a logical volume "by hand?"

in Sysadmin
by (115)
2 19 33
edit history

Please log in or register to answer this question.

1 Answer

0 votes
 

First you need to make sure the LVM tools are installed (package lvm2). With grml that should already be the case. Then you follow this procedure:

  1. Check the system for existing volume groups:

    vgscan
    
  2. Activate the volume group with the logical volume you want to mount:

    vgchange -ay VG_NAME
    

    Alternatively run vgchange -ay (without a volume group name) to activate all volume groups.

  3. Check that the logical volume is present:

    lvs
    
  4. Mount the volume:

    mount /dev/VG_NAME/LV_NAME /mnt
    

If needed use chroot to change the filesystem root while you work on the mounted volume.

by (115)
2 19 33
edit history
...