Gentoo Archives: gentoo-user

From: "Charles R.
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] installation / grub boot problem
Date: Sun, 15 Mar 2009 20:06:06
Message-Id: 49BD5FAB.1070307@cox.net
In Reply to: [gentoo-user] installation / grub boot problem by Heping He
1 Heping He wrote:
2 > Hi, I tried to install gentoo on my AMD 64 dual core machine. It has
3 > four 500 GB HDs. I followed the instruction on
4 > http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml. I
5 > replaced /dev/md4 with raid5 instead of raid0. Here is the list of
6 > each HD's partitiion:
7 >
8 > /dev/sda:
9 > partition #, boot start end type
10 > 1 * 1 18 fd
11 > 2 19 361 fd
12 > 3 362 end fd
13 >
14 > /dev/sdb
15 > partition #, boot start end type
16 > 1 1 361 82
17 > 2 362 end fd
18 >
19 > /dev/sdc is the same to /dev/sda, and /dev/sdd = /dev/sdb
20 >
21 > I created /dev/md1, /dev/md3 and /dev/md4:
22 > mknod /dev/md1 b 9 1
23 > mknod /dev/md3 b 9 3
24 > mknod /dev/md4 b 9 4
25 >
26 > and then form raid:
27 > mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdc1
28 > mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda2 /dev/sdc2
29 > mdadm --create /dev/md4 --level=5 --raid-devices=4 /dev/sda3 /dev/sdb2
30 > /dev/sdc3 /dev/sdd2
31 >
32 > /dev/sdb1 and /dev/sdd1 forms the swap space
33 >
34 > mount:
35 > mount /dev/md3 /mnt/gentoo
36 > mount /dev/md1 /mnt/gentto/boot
37 >
38 > /dev/md4 is for lvm2 and /usr, /home, /opt and other common unix dir
39 > are created there
40 >
41 > after chroot and emerge, I issued emerge grub and modified
42 > /boot/grub/grub.conf
43 >
44 > default 0
45 > timeout 10
46 >
47 > title gentoo
48 > root (hd0,0)
49 > kernel /boot/kernel root=/dev/md3
50 >
51 > and issue grub
52 > grub> root (hd0,0)
53 > ....
54 > grub> setup (hd0)
55 > ....
56 > grub> root (hd2,0)
57 > .....
58 > grub> setup (hd2)
59 > .....
60 > grub> quit
61 >
62 > When I reboot, the kernel issued a panic msg: it says can't read
63 > /dev/md/3 or (hd2,0) is invalid device.
64 >
65 > Any idea what went wrong?
66 >
67 > Thanks in advance for any suggestion.
68 >
69 > --HH
70 I'm running a similar RAID setup and I found that I must add "
71 root=/dev/md3 md=3,sda3,sdb3,hda3 ". It seems that md3 must be
72 defined. At least I had kernel panics until I added this.
73
74 Chuck