Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] installation / grub boot problem Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] installation / grub boot problem "Charles R.