From: Helge Hafting <helgehaf@aitel.hist.no>
To: Harold Martin <cocoadev@earthlink.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Mounting /dev/md0 as root in 2.6.0-test7
Date: Mon, 20 Oct 2003 10:23:01 +0200 [thread overview]
Message-ID: <3F939B65.7060507@aitel.hist.no> (raw)
In-Reply-To: <1066582732.1108.5.camel@localhost>
Harold Martin wrote:
> First, is it possible to mount an md device as root (superblock is
> present)?
Yes, this is trivial. /dev/md0 works just as good
as, say, /dev/hda2.
> If not then the rest of this doesn't really matter...
>
> If so, I can't get it to work :(
> I pass root=/dev/md0 to the kernl, but I get the "Kernel panic: VFS:
> Unable to mount root fs on md0" error.
1. This raid device is properly made and contains a valid root fs?
2. The partitions containing parts of the RAID are of type
raid autodetect? (if not, use cfdisk/fdisk/... and change them)
2. Your kernel has the raid-drivers _compiled in_, they're not
modular? (Modular _can_ be done if you load the drivers from
an initrd, but why bother? Drivers for the root fs will never
be unloadable anyway, so no reason for modules here. Compile
the drivers in, and they just work.
> My setup:
> kernel 2.6.0-test7
> One drive on each of my two IDE channels (i810 chipset)
> RAID 0, set up with raidtools
> Using devfs
I use devfs too. Note that it isn't "/dev/md0" with devfs,
it is "/dev/md/0". Note the extra "/". Now, devfsd may
create a compatibilty symlink called "/dev/md0", but it isn't
there at the time you mount root.
Note that root=/dev/md/0 is not enough when you use devfs.
You also need: append="root=/dev/md/0"
for some strange dark reason. It wasn't always so, it got broken.
Perhaps an incentive to not use devfs?
> My FS type (ext2 and ext3), partition type (DOS), and RAID-0 support are
> all compiled in (not as modules).
Good.
>
> What else do I need to do to be able to mount /dev/md0 as root?
>
Looks like the "append" thing is what you need, seeing that you
already use compiled-in drivers. Also make sure your raid-partitions
are of the autodetect variety.
Helge Hafting
next prev parent reply other threads:[~2003-10-20 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-19 16:58 Harold Martin
2003-10-19 18:16 ` Michael Buesch
2003-10-20 8:23 ` Helge Hafting [this message]
2003-10-19 18:53 John Mock
2003-10-19 19:12 ` Andre Tomt
2003-10-19 20:48 John Mock
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=3F939B65.7060507@aitel.hist.no \
--to=helgehaf@aitel.hist.no \
--cc=cocoadev@earthlink.net \
--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
Powered by JetHome