public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jhf@rivenstone.net (Joseph Fannin)
To: Alex <alex@meerkatsoft.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Cannot boot after new Kernel Build
Date: Sun, 11 Jan 2004 00:34:46 -0500	[thread overview]
Message-ID: <20040111053446.GA1242@rivenstone.net> (raw)
In-Reply-To: <3FFFB60C.9010309@meerkatsoft.com>

[-- Attachment #1: Type: text/plain, Size: 2216 bytes --]

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@rivenstone.net

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-01-11  5:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-10  8:21 Cannot boot after new Kernel Build Alex
2004-01-10  9:37 ` Bongani Hlope
2004-01-10 15:08 ` Christian Kivalo
2004-01-10 15:43   ` Alex
2004-01-10 16:10     ` Christian Kivalo
2004-01-10 16:19       ` Alex
2004-01-11  5:34 ` Joseph Fannin [this message]
2004-01-11  6:04   ` Kernel 2.4.20 RH Cannot set DMA Alex
  -- strict thread matches above, loose matches on Subject: below --
2004-01-11  3:33 Cannot boot after new Kernel Build Zhu, Yi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040111053446.GA1242@rivenstone.net \
    --to=jhf@rivenstone.net \
    --cc=alex@meerkatsoft.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox