Re: Cannot boot after new Kernel Build
From: Joseph Fannin
Date: Sun Jan 11 2004 - 00:36:19 EST
On Sat, Jan 10, 2004 at 05:21:32PM +0900, Alex wrote:
> Hi,
> I am trying to build a new kernel but what ever version 2.4.24, 2.6.0,
> 2.6.1 i am trying to build I come across the same problem.
>
> when doing a "make install" i get the following error.
>
> /dev/mapper/control: open failed: No such file or directlry
> Is device-mapper driver missing from kernel?
> Comman failed.
>
> I have installed the lates packages
> device mapper 1.00.07
> initscripts 7.28.1
> modutils, lvm2.2.00.08
> mkinitrd-3.5.15.1-2
>
> If I just ignore the message and try to boot the machine with the new
> kernel then I get a Kernel Panic.
>
> VFS: Cannot open root device "LABEL=/" or unknown-block(0,0)
> Please append a correct "root=" boot option
> Kernel panic: VFS: Unapble to mount root fs on unknown-block(0,0).
>
> The boot command in grub is
> root (hd0,0)
> kernel /vmlinuz-2.6.1 ro root=LABEL=/ hdc=ide-scsi
> initrd /initrd-2.6.1.img
>
> It is basically the same (except the version) as I use for 2.4.20-28 so
> I assume the label is correct.
I went through something similar with Fedora Core 1 recently. I
have never used initrds before.
First, be sure that the initrd is in fact getting built; my
experience has been that that device-mapper error is non-fatal, but
there may be other problems. The command that is generating the
error is mkinitrd; if you need to, run the command manually and read
the mkinitrd man page (the --omit-lvm-modules will make the d-m error
go away, assuming you aren't using LVM, but again, it's not a big deal).
You probably don't need to do that though. More likely, the
problem is the lack of *both* initrd and ramdisk support in your
kernel new kernel config. Yes, you need to explicitly select ramdisk
support -- I don't know why initrd can be selected without ramdisk on,
but I've been assuming there is a good reason.
After that, I had a problem with the ramdisk being too big, so
you may want to increase the default ramdisk size to 8192 before
rebuilding your kernel, or otherwise change your kernel command line
to include ramdisk_size=8192.
HTH.
--
Joseph Fannin
jhf@xxxxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature