Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] problem with raid1: error while booting
Date: Wed, 13 Jul 2005 05:25:51
Message-Id: 42D4A57F.4030304@asmallpond.org
In Reply to: Re: [gentoo-user] problem with raid1: error while booting by Jarry
1 Jarry wrote:
2
3 > Richard Fish wrote:
4 >
5 > > Just an FYI, the md driver does not create sysfs entries and thus udev
6 > > does not create device nodes if autodetection is not performed by the
7 > > driver. Autodetection is not performed if either:
8 > >
9 > > 1. The md driver is a module (not a problem according to your original
10 > > email)
11 > > 2. You are using an initramfs (vs an initrd) to bring up the system
12 > > 3. or if you do not have the right partition types defined.
13 >
14 > I think I can unselect options 1. and 3. (md-support is in kernel, and
15 > partitions are marked as type "fd - Linux raid autodetect").
16 >
17 > Concerning 2, I'm not sure if I understand correctly:
18 > Do you mean turning off initramfs support in kernel-configuration?
19 >
20 > Jarry
21
22
23 Actually, it is pretty much impossible to turn off initramfs support in
24 the kernel. A couple of quick definitions:
25
26 1. initrd - an initial ramdisk of a fixed size loaded into memory by the
27 boot loader used to get the system ready to mount the root filesystem.
28 The /linuxrc script in the ramdisk is responsible for this, and requires
29 "RAM disk support" and "Initial RAM disk (initrd) support" in the kernel
30 configuration.
31
32 2. initramfs - A compressed (optional) cpio archive linked directly into
33 the kernel, or possibly loaded into memory by the boot loader, used to
34 provide early-userspace services. If the initramfs contains /init, it
35 will be executed and is expected to mount the root filesystem, move the
36 system root to it, and execute the real init on the root. If the user
37 doesn't specify an initramfs, the kernel makes a very small one of its
38 own, without the /init. This is the "rootfs" you see in /proc/mounts.
39
40 #1 you are probably already familiar with...it is the traditional way
41 for loading modules needed for the root filesystem to become available.
42
43 #2 is fairly recent...but growing in usage. fbsplash uses
44 early-userspace to provide a splash image as soon as the graphics system
45 is initialized in the kernel, for example. Unless you have specified
46 something for "Device Drivers->Block Devices->Initramfs source file" in
47 the kernel configuration, or your "initrd" option to grub/lilo specifies
48 an initramfs, this is not a problem for you.
49
50 In short, if you don't really know what initramfs is, you are probably
51 not using it! So I am not sure why you are having this problem. Could
52 you double check that /etc/udev/rules.d/50-udev.rules contains:
53
54 # md block devices
55 KERNEL=="md[0-9]*", NAME="md/%n", SYMLINK+="%k", GROUP="disk"
56
57 Also, do you have any custom rules files in /etc/udev/rules.d?
58
59 In the maintenance mode, does /sys/block/md0/* exist? What does "cat
60 /proc/mdstat" report?
61
62 -Richard
63
64
65 --
66 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] problem with raid1: error while booting Jarry <jarry@×××.net>