Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] grub & Compaq cpqarray RAID array. devfs / udev problem?
Date: Sat, 12 Aug 2006 06:12:02
Message-Id: 2673D682-20E5-403C-8B99-64CD13603A28@stellar.eclipse.co.uk
1 Hi there,
2
3 I'm feeling a bit stuffed with a machine upon which I recently ran
4 `emerge -e world`. I'm surprised to think this is the cause, however
5 the next time I booted grub failed to load, and I did not even get
6 the usual menu asking me which kernel I want to load - all I get is
7 "GRUB" in white letters at the very top left of a black screen.
8
9 Ok, I thought, this should be as easy as booting from the LiveCD,
10 chrooting into the system and then running grub from in there. How
11 naive could I be?
12
13 livecd ~ # uname -a
14 Linux livecd 2.6.15-gentoo-r5 #1 SMP Thu Feb 16 15:28:08 UTC 2006
15 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux
16 livecd ~ # parted /dev/ida/disc0/disc p
17 Disk geometry for /dev/ida/disc0/disc: 0kB - 18GB
18 Disk label type: msdos
19 Number Start End Size Type File system Flags
20 3 16kB 38MB 38MB primary fat16
21 1 38MB 100MB 63MB primary ext3 boot
22 2 100MB 1174MB 1074MB primary linux-swap
23 4 1174MB 18GB 17GB primary reiserfs
24 Information: Don't forget to update /etc/fstab, if necessary.
25
26 livecd ~ # mount -v /dev/ida/disc0/part4 /mnt/gentoo/
27 mount: you didn't specify a filesystem type for /dev/ida/disc0/part4
28 I will try type reiserfs
29 /dev/ida/disc0/part4 on /mnt/gentoo type reiserfs (rw)
30 livecd ~ # mount -v /dev/ida/disc0/part1 /mnt/gentoo/boot/
31 mount: you didn't specify a filesystem type for /dev/ida/disc0/part1
32 I will try type ext3
33 /dev/ida/disc0/part1 on /mnt/gentoo/boot type ext3 (rw)
34 livecd ~ # mount -t proc proc /mnt/gentoo/proc
35 livecd ~ # cp -L /etc/resolv.conf /mnt/gentoo/etc/
36 livecd ~ # chroot /mnt/gentoo /bin/bash
37 livecd / # env-update && source /etc/profile
38 >>> Regenerating /etc/ld.so.cache...
39 livecd / #
40
41 So mounting the RAID array from the LiveCD is the easy part. After
42 this, nothing goes as planned:
43
44 livecd / # grub
45 GNU GRUB version 0.96 (640K lower / 3072K upper memory)
46
47 grub> find /boot/grub/stage1
48
49 Error 15: File not found
50
51 grub> root (hd0,0)
52 Filesystem type is xfs, partition type 0x83
53
54 grub> quit
55
56 Y'see, XFS isn't the filesystem of any of the partitions on the
57 array, but that of the filesystem on the separate EIDE drive. And
58 it's no good installing GRUB on this, I've tried before. :(
59
60 livecd / # grep ida /etc/fstab
61 /dev/ida/c0d0p1 /boot ext2
62 noauto,noatime 1 2
63 /dev/ida/c0d0p2 none swap
64 sw 0 0
65 /dev/ida/c0d0p4 / reiserfs
66 noatime 0 1
67
68 This is how the partitions are described in /etc/fstab, but...
69
70 livecd / # grub-install /dev/ida/c0d0
71 expr: non-numeric argument
72 Could not find device for /boot: Not found or not a block device.
73 livecd / #
74
75 From the LiveCD (see first code sample) I was able to address the
76 drive as /dev/ida/disc0/disc, but not from inside the system - this
77 doesn't seem to be described in /dev:
78
79 livecd / # grub-install /dev/ida/c0d0/disk
80 /dev/ida/c0d0/disk: Not found or not a block device.
81 livecd / # grub-install /dev/ida/disc0/disc
82 /dev/ida/disc0/disc: Not found or not a block device.
83 livecd / # ls /dev/ida/disc0/disc
84 ls: /dev/ida/disc0/disc: No such file or directory
85 livecd / # ls /dev/ida/disc0/
86 ls: /dev/ida/disc0/: No such file or directory
87 livecd / # ls /dev/ida/
88 c0d0 c0d14p9 c0d6 c1d10p9 c1d2 c1d8
89 c2d12p9 c2d4
90 c0d0p1 c0d15 c0d6p1 c1d11 c1d2p1 c1d8p1
91 c2d13 c2d4p1
92 c0d0p10 c0d15p1 c0d6p10 c1d11p1 c1d2p10 c1d8p10
93 c2d13p1 c2d4p10
94 c0d0p11 c0d15p10 c0d6p11 c1d11p10 c1d2p11 c1d8p11
95 c2d13p10 c2d4p11
96 c0d0p12 c0d15p11 c0d6p12 c1d11p11 c1d2p12 c1d8p12
97 c2d13p11 c2d4p12
98 c0d0p13 c0d15p12 c0d6p13 c1d11p12 c1d2p13 c1d8p13
99 c2d13p12 c2d4p13
100 c0d0p14 c0d15p13 c0d6p14 c1d11p13 c1d2p14 c1d8p14
101 c2d13p13 c2d4p14
102 c0d0p15 c0d15p14 c0d6p15 c1d11p14 c1d2p15 c1d8p15
103 c2d13p14 c2d4p15
104 c0d0p2 c0d15p15 c0d6p2 c1d11p15 c1d2p2 c1d8p2
105 c2d13p15 c2d4p2
106 c0d0p3 c0d15p2 c0d6p3 c1d11p2 c1d2p3 c1d8p3
107 c2d13p2 c2d4p3
108 ...
109 ...
110 c0d14p7 c0d5p8 c1d10p7 c1d1p8 c1d7p8 c2d12p7
111 c2d3p8 c2d9p8
112 c0d14p8 c0d5p9 c1d10p8 c1d1p9 c1d7p9 c2d12p8
113 c2d3p9 c2d9p9
114 livecd / #
115
116 Since I don't have 14 disks on my system these entries are obviously
117 bogus.
118
119 So any suggestions where to go from here, please?
120
121 Installing GRUB *used* to work on this system, because I described it
122 in great detail when I wrote <http://gentoo-wiki.com/
123 HARDWARE_Compaq_Proliant_6500>. The only think I can think is that
124 this system was originally installed 18 months or 2 years ago, and
125 that since then the devfs / udev transmogrification has taken place.
126 I seem to recall following instructions at the time (when my new
127 kernel required me to upgrade) but I can't say I really understood
128 all that business. Is it possible that this is why the cpqarray is
129 not described correctly in the mounted, chrooted /dev ? Is there any
130 way to copy the /dev off the LiveCD onto the mounted, chrooted
131 system, and will this make any difference to GRUB?
132
133 I feel really frustrated by this, as I used to have quite a usable
134 system,
135
136 Cheers,
137
138 Stroller.
139 --
140 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] grub & Compaq cpqarray RAID array. devfs / udev problem? Richard Fish <bigfish@××××××××××.org>