public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Richard Fish <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] problem with raid1: error while booting
Date: Wed, 13 Jul 2005 07:24:15 +0200	[thread overview]
Message-ID: <42D4A57F.4030304@asmallpond.org> (raw)
In-Reply-To: <42D49631.8070406@gmx.net>

Jarry wrote:

> Richard Fish wrote:
>
> > Just an FYI, the md driver does not create sysfs entries and thus udev
> > does not create device nodes if autodetection is not performed by the
> > driver.  Autodetection is not performed if either:
> >
> > 1. The md driver is a module (not a problem according to your original
> > email)
> > 2. You are using an initramfs (vs an initrd) to bring up the system
> > 3. or if you do not have the right partition types defined.
>
> I think I can unselect options 1. and 3. (md-support is in kernel, and
> partitions are marked as type "fd - Linux raid autodetect").
>
> Concerning 2, I'm not sure if I understand correctly:
> Do you mean turning off initramfs support in kernel-configuration?
>
> Jarry


Actually, it is pretty much impossible to turn off initramfs support in
the kernel.  A couple of quick definitions:

1. initrd - an initial ramdisk of a fixed size loaded into memory by the
boot loader used to get the system ready to mount the root filesystem. 
The /linuxrc script in the ramdisk is responsible for this, and requires
"RAM disk support" and "Initial RAM disk (initrd) support" in the kernel
configuration.

2. initramfs - A compressed (optional) cpio archive linked directly into
the kernel, or possibly loaded into memory by the boot loader, used to
provide early-userspace services.  If the initramfs contains /init, it
will be executed and is expected to mount the root filesystem, move the
system root to it, and execute the real init on the root.  If the user
doesn't specify an initramfs, the kernel makes a very small one of its
own, without the /init.  This is the "rootfs" you see in /proc/mounts.

#1 you are probably already familiar with...it is the traditional way
for loading modules needed for the root filesystem to become available.

#2 is fairly recent...but growing in usage.  fbsplash uses
early-userspace to provide a splash image as soon as the graphics system
is initialized in the kernel, for example.  Unless you have specified
something for "Device Drivers->Block Devices->Initramfs source file" in
the kernel configuration, or your "initrd" option to grub/lilo specifies
an initramfs, this is not a problem for you.

In short, if you don't really know what initramfs is, you are probably
not using it!  So I am not sure why you are having this problem.  Could
you double check that /etc/udev/rules.d/50-udev.rules contains:

# md block devices
KERNEL=="md[0-9]*",     NAME="md/%n", SYMLINK+="%k", GROUP="disk"

Also, do you have any custom rules files in /etc/udev/rules.d?

In the maintenance mode, does /sys/block/md0/* exist?  What does "cat
/proc/mdstat" report?

-Richard


-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-07-13  5:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-12  7:28 [gentoo-user] problem with raid1: error while booting Jarry
2005-07-12 14:56 ` Kurt Guenther
2005-07-12 15:12   ` Jarry
2005-07-12 20:37     ` A. Khattri
2005-07-12 21:02       ` Richard Fish
2005-07-13  4:18       ` Jarry
2005-07-13  5:24         ` Richard Fish [this message]
2005-07-13 14:09           ` Jarry
2005-07-13 14:18             ` Mike Williams
2005-07-13 18:26               ` Richard Fish
2005-07-13 16:17             ` [gentoo-user] problem with raid1: error while booting - SOLVED ! Jarry
2005-07-13 18:45               ` Richard Fish
2005-07-14  6:37                 ` Jarry
2005-07-13 18:40             ` [gentoo-user] problem with raid1: error while booting Richard Fish

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=42D4A57F.4030304@asmallpond.org \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.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