Mounting a LVM partition from a linux live cd
Jerry Feldman
gaf-mNDKBlG2WHs at public.gmane.org
Wed Sep 17 15:21:40 EDT 2008
Try booting the Centos 5.2 installation DVD in rescue mode. It should=20
mount the root and boot partitions automatically. Or, have you tried=20
bringing up the kernel in run level 1, 2 or 3?. You can edit the kernel=20
settings and try putting in some settings. It is possible that the=20
kernel panic could have been caused by a graphics driver. The bottom=20
line is that you should be able to get the system back into at least a=20
limited operation using the rescue mode. At that point, you could=20
proceed by one o a number of different methods. Note that before I=20
installed Fedora on my CentOS system I made sure that the rescue system=20
would mount the LVM volumes.
Also note that not all Linux Live CDs have LVM built into the kernel.
On 09/17/2008 11:58 AM, John Abreau wrote:
> Try running vgscan to create the VG files under /dev:
>
> $ sudo vgscan
> Reading all physical volumes. This may take a while...
> Found volume group "RosettaVG" using metadata type lvm2
> $ sudo ls /dev/RosettaVG
> home root usr var
> $ sudo mkdir /mnt/temp ; sudo mount /dev/RosettaVG/root /mnt/temp
>
> This assumes the livecd has LVM compiled into its kernel.
>
>
>
> On Wed, Sep 17, 2008 at 11:50 AM, Matt Shields <matt-urrlRJtNKRMsHrnhXWJB8w at public.gmane.org> w=
rote:
> =20
>> I'm running CentOS 5.2, it uses LVM to manage the disks and we had a
>> programmer do something (not sure what) then reboot the system. When =
it
>> came up it kernel panicked. Luckily it's not production, it was their=
>> sandbox. But they didn't backup any of their files. I know the disks=
are
>> fine because I was able to boot from a linux live cd and mount the /bo=
ot
>> partition from the sda drive, and the sdb drive that has the mysql dat=
abase
>> mounted at /var/lib/mysql and not using LVM. What I don't know how t=
o do
>> is mount /dev/sda2 (root / partition) which is an LVM/ext3 partition. =
Does
>> anyone have the steps to mount this drive while booted into a linux li=
ve cd?
>>
>> =20
>
> =20
--=20
--
Jerry Feldman <gaf-mNDKBlG2WHs at public.gmane.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
More information about the Discuss
mailing list