Gentoo Archives: gentoo-user

From: Hendrik Boom <hendrik@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Installation problems
Date: Fri, 13 Jul 2007 19:25:44
Message-Id: f78j85$r73$1@sea.gmane.org
1 A few months ago I tried installing gentoo. It mostly succeedes, but I
2 was unable to boot the new system.
3
4 When I boot, it fails as follows:
5
6 >> Activating mdev
7 >> Determining root device
8 !! Block device /dev/mapper/lovesong-gentoo is not a valid block device
9 !! The root block device is unspecified or not detected
10 Please specify a device to boot, or "shell" for a shell
11 boot() ::
12
13
14 Now I originally installed this system using a chroot from a Debian etch
15 system. I used genkernel to generate the kernel. As far as I can
16 remember, I did specified the --lvm option.
17
18 Now perhaps the kernel is not OK because I ran genkernel in a chroot
19 running on a Debian kernel...
20
21 Perhaps I chose the wront options...
22
23 Perhaps I can fix things by rerunning genkernel with different options...
24
25 Or perhaps I need to start all over from a full-fledged gentoo install CD.
26
27 Please advise.
28
29 -- hendrik
30
31 P.S. Soime Gory Details:
32 \
33 Here's the start of my /boot/gfub/menu.lst (on the boot partition for the
34 Debian etch system):
35
36 ------------
37 # menu.lst - See: grub(8), info grub, update-grub(8)
38 # grub-install(8), grub-floppy(8),
39 # grub-md5-crypt, /usr/share/doc/grub
40 # and /usr/share/doc/grub-doc/.
41
42 ## default num
43 # Set the default entry to the entry number NUM. Numbering starts from 0, and
44 # the entry number 0 is the default if the command is not used.
45 #
46 # You can specify 'saved' instead of a number. In this case, the default entry
47 # is the entry saved with the command 'savedefault'.
48 # WARNING: If you are using dmraid do not change this entry to 'saved' or your
49 # array will desync and will not let you boot your system.
50 default 0
51
52 ## timeout sec
53 # Set a timeout, in SEC seconds, before automatically booting the default entry
54 # (normally the first entry defined).
55 timeout 5
56
57 # Pretty colours
58 color cyan/blue white/blue
59
60 ## password ['--md5'] passwd
61 # If used in the first section of a menu file, disable all interactive editing
62 # control (menu entry editor and command-line) and entries protected by the
63 # command 'lock'
64 # e.g. password topsecret
65 # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
66 # password topsecret
67
68 #
69 # examples
70 #
71 # title Windows 95/98/NT/2000
72 # root (hd0,0)
73 # makeactive
74 # chainloader +1
75 #
76 # title Linux
77 # root (hd0,1)
78 # kernel /vmlinuz root=/dev/hda2 ro
79 #
80
81 #
82 # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
83
84 ### BEGIN AUTOMAGIC KERNELS LIST
85 ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
86 ## by the debian update-grub script except for the default options below
87
88 ## DO NOT UNCOMMENT THEM, Just edit them to your needs
89
90 ## ## Start Default Options ##
91 ## default kernel options
92 ## default kernel options for automagic boot options
93 ## If you want special options for specific kernels use kopt_x_y_z
94 ## where x.y.z is kernel version. Minor versions can be omitted.
95 ## e.g. kopt=root=/dev/hda1 ro
96 ## kopt_2_6_8=root=/dev/hdc1 ro
97 ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
98 # kopt=root=/dev/mapper/lovesong-etch ro
99
100 ## default grub root device
101 ## e.g. groot=(hd0,0)
102 # groot=(hd0,4)
103
104 ## should update-grub create alternative automagic boot options
105 ## e.g. alternative=true
106 ## alternative=false
107 # alternative=true
108
109 ## should update-grub lock alternative automagic boot options
110 ## e.g. lockalternative=true
111 ## lockalternative=false
112 # lockalternative=false
113
114 ## additional options to use with the default boot option, but not with the
115 ## alternatives
116 ## e.g. defoptions=vga=791 resume=/dev/hda5
117 # defoptions=
118
119 ## should update-grub lock old automagic boot options
120 ## e.g. lockold=false
121 ## lockold=true
122 # lockold=false
123
124 ## Xen hypervisor options to use with the default Xen boot option
125 # xenhopt=
126
127 ## Xen Linux kernel options to use with the default Xen boot option
128 # xenkopt=console=tty0
129
130 ## altoption boot targets option
131 ## multiple altoptions lines are allowed
132 ## e.g. altoptions=(extra menu suffix) extra boot options
133 ## altoptions=(single-user) single
134 # altoptions=(single-user mode) single
135
136 ## controls how many kernels should be put into the menu.lst
137 ## only counts the first occurence of a kernel, not the
138 ## alternative kernel options
139 ## e.g. howmany=all
140 ## howmany=7
141 # howmany=all
142
143 ## should update-grub create memtest86 boot option
144 ## e.g. memtest86=true
145 ## memtest86=false
146 # memtest86=true
147
148 ## should update-grub adjust the value of the default booted system
149 ## can be true or false
150 # updatedefaultentry=false
151
152 ## ## End Default Options ##
153
154 title Debian GNU/Linux, kernel 2.6.18-4-486
155 root (hd0,4)
156 kernel /vmlinuz-2.6.18-4-486 root=/dev/mapper/lovesong-etch ro
157 initrd /initrd.img-2.6.18-4-486
158 savedefault
159
160 title Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
161 root (hd0,4)
162 kernel /vmlinuz-2.6.18-4-486 root=/dev/mapper/lovesong-etch ro single
163 initrd /initrd.img-2.6.18-4-486
164 savedefault
165
166 title Debian GNU/Linux, kernel 2.6.18-3-486
167 root (hd0,4)
168 kernel /vmlinuz-2.6.18-3-486 root=/dev/mapper/lovesong-etch ro
169 initrd /initrd.img-2.6.18-3-486
170 savedefault
171
172 title Debian GNU/Linux, kernel 2.6.18-3-486 (single-user mode)
173 root (hd0,4)
174 kernel /vmlinuz-2.6.18-3-486 root=/dev/mapper/lovesong-etch ro single
175 initrd /initrd.img-2.6.18-3-486
176 savedefault
177
178 ### END DEBIAN AUTOMAGIC KERNELS LIST
179
180 # This is a divider, added to separate the menu items below from the Debian
181 # ones.
182 title Other operating systems: gentoo
183 root (hd0,5)
184 kernel /kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/mapper/lovesong-gentoo ro single
185 initrd /initramfs-genkernel-x86-2.6.20-gentoo-r8
186
187
188
189 # This entry automatically added by the Debian installer for an existing
190 # linux installation on /dev/hdc4.
191 title Debian GNU/Linux, kernel 2.6.18-3-k7 (on /dev/hdc4)
192 root (hd1,3)
193 kernel /boot/vmlinuz-2.6.18-3-k7 root=/dev/hda3 ro
194 initrd /boot/initrd.img-2.6.18-3-k7
195 savedefault
196 boot
197 -----
198
199 and many more irrelevan stanzas.
200
201 The Debian systen gives me
202
203 hendrik@lovesong:~$ ls /dev/mapper
204 control lovesong-gentoo lovesong-sarge
205 lovesong-etch lovesong-other lovesong-spare
206 hendrik@lovesong:~$
207
208
209 But the gentoo system (if I shoose to enter a shell after booting) tells
210 me the only entry in /dev/mapper is /dev/mapper/control
211
212
213 As I said earlier, please advise.
214
215 -- hendrik
216 ...
217 ...
218
219 --
220 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Installation problems ds <dsitsolutions@×××××.com>
Re: [gentoo-user] Installation problems Mike Williams <mike@××××××××.uk>