From: Glynn Clements <glynn@gclements.plus.com>
To: Alex <mysqlstudent@gmail.com>
Cc: linux-admin@vger.kernel.org
Subject: Re: Compiling 2.6 kernel questions
Date: Thu, 26 Nov 2009 04:35:33 +0000 [thread overview]
Message-ID: <19214.1429.491143.904449@cerise.gclements.plus.com> (raw)
In-Reply-To: <55e03a0a0911251532s5894e406jc7f4ffd6c8d34b73@mail.gmail.com>
Alex wrote:
> > "VFS: Can't mount root" suggests that it's failing to mount the initrd
> > filesystem. For initrd, the root filesystem passed to the kernel from
> > the bootloader (via root=) should be /dev/ram0. You also have to tell
> > the bootloader where to find the filesystem image (e.g. via initrd=
> > for lilo).
>
> Yes, and I'm pointing lilo to the initrd, and can mount and read the
> initrd on its own.
>
> You don't mean root=/dev/ram0 instead of root=/dev/md1, right?
Yes. This seems to be the standard initrd mechanism for newer kernels.
The error message:
VFS: Can't mount root unknown-block(9,1)
indicates that the kernel is trying to mount /dev/md1 directly (device
9:1 is /dev/md1), which won't work if the md driver is a module (even
if the md driver is built in, this won't work if the array needs
user-space configuration before it can be mounted).
> This is why I was asking about lilo some time ago. I'm using the
> latest, but that's from 2007. Is it possible that it has a problem
> with this kernel?
I haven't had any problems using lilo with recent kernels, although I
don't normally use initrd.
You should look at Documentation/initrd.txt for details on the current
state of initrd. Or Documentation/filesystems/ramfs-rootfs-initramfs.txt
for the newer initramfs mechanism.
--
Glynn Clements <glynn@gclements.plus.com>
next prev parent reply other threads:[~2009-11-26 4:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 23:18 Compiling 2.6 kernel questions Alex
2009-11-25 4:07 ` Glynn Clements
2009-11-25 5:00 ` Alex
2009-11-25 9:02 ` Glynn Clements
2009-11-25 18:24 ` Alex
2009-11-25 22:51 ` Glynn Clements
2009-11-25 23:32 ` Alex
2009-11-26 4:35 ` Glynn Clements [this message]
2009-11-27 1:18 ` Alex
2009-11-28 0:27 ` Glynn Clements
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=19214.1429.491143.904449@cerise.gclements.plus.com \
--to=glynn@gclements.plus.com \
--cc=linux-admin@vger.kernel.org \
--cc=mysqlstudent@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).