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
11 views
11 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 General by (15) 4

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
By submitting this post you agree to our Terms & Conditions.
To avoid this verification in future, please log in or register.

1 Answer

0 votes
 
Best answer

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 (15) 4
...