LVM mistake

Out of curiosity and stupidity, I configured 2 extended partitions to LVM in gparted. Now, I can’t boot into X window, and there’s only GRUB command line during boot.

Help please?

Am planning to use this - SystemRescueCD

Here’s what I manage to find in grub CLI-mode

grub> root (hd0,1)
 Filesystem type unknown, partition type 0xf

I’m guessing that I need to reconfigure the filesystem.
Any advices?

I see TestDisk is on that CD, I have used TestDisk successfully before, but read up on it first, ensure that it finds the data you want and in the partitions they should be.
I have managed to get “unusual” results by not taking appropriate care with this program.
You can also use it to save the data it finds before committing the changes.

I found out that GRUB can’t detect the kernel when it is in an LVM partitioned root filesystem. So I used the cd I made from SystemRescueCd to boot to “existing Linux OS on the disk” (as it says in the main menu) and unchecked the LVM flag for the root filesystem in gparted.

It may also help if from that liveCD you could post the output of fdisk-l (thats a lowercase L) and an explaination of what you had before and now.
Another liveCD that includes TestDisk, and alows easy internet access is PartedMagic News

On 2010-11-04 13:36, izaak86 wrote:
>
> I found out that GRUB can’t detect the kernel when it is in an LVM
> partitioned root filesystem.

My understanding is that you need a separate /boot partition, outside of
the LVM.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)