LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to mount a LVM partition using a live cd (http://www.linuxquestions.org/questions/linux-general-1/how-to-mount-a-lvm-partition-using-a-live-cd-500825/)

brazilian_user 11-12-2006 08:07 AM

How to mount a LVM partition using a live cd
 
Hello


I'd like to know how I can mount a LVM partition using my live cd.

When I boot my Red Hat it fails to check the file system with fsck at the boottime, so I'm unable to keep booting.

Actually I can access the / partition, but it is mounted with read only method and I can't edit any file. So I want to mount the LVM partitions using a live cd to edit and copy some files through the network...

Any Ideas??


Thank you

Rodrigo

uselpa 11-12-2006 08:24 AM

You need to boot with a LVM-enabled live CD. Then, as root, you do a "vgscan" and mount the file system in the usual way (i.e. "mount /dev/<vgname>/<lvname> <mountpoint>").

brazilian_user 11-12-2006 08:47 AM

Quote:

Originally Posted by uselpa
You need to boot with a LVM-enabled live CD. Then, as root, you do a "vgscan" and mount the file system in the usual way (i.e. "mount /dev/<vgname>/<lvname> <mountpoint>").

Hey uselpa thank you!!

I'm using Debian's live cd, but I really don't know how I can enable the LVM or if this specific live cd has this caracteristic. I've tryied F1 before boot but I didn't see any option to enable LVM on boot...

Do you know if Debian's live cd project has suport to LVM or if it is possible I install it using apt-get...??

Best Regards!!

Rodrigo

uselpa 11-12-2006 08:59 AM

No I don't know that, but as Debian supports LVM-enabled installations my guess is that it does. If the "vgscan" command works and afterwards you have the /dev/VG/LV device node then it's working. Personally I use the RIP CD so if nothing works I can tell you how to do it with RIP.

srikanthrao_d 06-16-2009 01:11 AM

Quote:

Originally Posted by uselpa (Post 2500216)
You need to boot with a LVM-enabled live CD. Then, as root, you do a "vgscan" and mount the file system in the usual way (i.e. "mount /dev/<vgname>/<lvname> <mountpoint>").

Hi

It seems be my LV is inactive.

Could you please let me know how to mount inactive LV's

Thanks,
Srikant


All times are GMT -5. The time now is 08:32 AM.