<br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 3:50 PM, Lamar Owen <span dir="ltr"><<a href="mailto:lowen@pari.edu">lowen@pari.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Saturday, January 08, 2011 04:27:39 pm Johan Martinez wrote:<br>
<br>
> Now I am booting of CentOS live cd for system restore. I recreated<br>
> partitions like previous system using fdisk and then used dd to dump all the<br>
> data onto it. I would like to mount sda2 as LVM, but I don't know how to do<br>
> that. Any steps or howto mount LVM manually would be really helpful. I think<br>
> I can recover the system once I am able to access sda1 and sda2. Any help?<br>
<br>
</div>pvscan<br>
vgscan<br>
vgchange -ay<br>
lvscan<br>
<br>
(It has been awhile since I have done this; I know the vgchange -ay is required, but I don't recall if pvscan and lvscan were required or if I just used them for information....but I do think the vgscan was required.)<br>
<br>
In the lvscan output you should see the logical volumes; mount to the desired mountpoint with<br>
mount /dev/VOLUMEGROUP/LOGICALVOLUME MOUNTPOINT<br>
<br>
Or you can reboot the CentOS disk in rescue mode and have it find your system as part of its bootup. In that case your system will be mounted under /mnt/sysimage and you can do a 'chroot /mnt/sysimage' and essentially get a command line inside that system.<br>
<br>
Hope that helps.<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br><div><br></div><div>Thanks for the reply Lamar and Robert. </div><div><br></div><div><div>I had tried pvscan and vgscan before sending out my first mail, but it didn't show up any physical volumes and vol grpups. </div>
<div><br></div><div>I didn't do lvscan though. </div></div><div><br></div><div>I will try again and see how it goes. </div><div><br></div><div>jM. </div><div><br></div>