zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Mount LVM from liveCD

January 21, 2011 by Igor Drobot 2 Comments

Yeah after installation of Windows seven – my Grub-Bootloader was removed and I get only the Windows bootmager.

This article describe hot to mount root “/” which was created on LVM from a live CD and install GRUB Boot-Loader.

Step 1: Get a live CD in my case it was Ubuntu 10.10 Desktop edition.

Step 2: Boot from live CD and get your network to work, you will need it to install some packages.
Step 3: Install LVM to mound root

1
apt-get install lvm2

apt-get install lvm2

Step 4:
Run pvscan to scan all disks for physical volume:

1
pvscan

pvscan

Step 5:
Run vgscan to scan disks for volume groups:

1
vgscan

vgscan

Step 6: Activate volume groups:

1
vgchange -a y

vgchange -a y

Step 7: Run lvscan to scan all disks for logical volume.

Step 8: Mount your root or another devices:

1
mount /dev/VolGroup0/root /mnt/

mount /dev/VolGroup0/root /mnt/

For GRUB installation refer to this article

Filed Under: Bash, Linux Tagged With: LVM, rescue

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. saddy says

    March 6, 2014 at 10:53

    Thank you grundic! This was never mentioned from any “How-To” Autor and let me run into errors. :)

  2. grundic says

    July 23, 2012 at 07:30

    Before activating volume groups, you would have to load kernel module:
    # modprobe dm-mod

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok