1 |
On March 13, 2012 at 1:36 AM roger@×××××××.edu wrote: |
2 |
|
3 |
> I recently decided to update my AMD64 box from 2.38 to the new 3.2 |
4 |
kernel. |
5 |
> I used genkernel all to compile the upgraded kernel but when I go to boot |
6 |
> I get the following error. |
7 |
> |
8 |
> >>Loading modules |
9 |
> >>Determining root device |
10 |
> !!Block device /dev/sdb2 is not a valid root device |
11 |
> !!Could not find the root block device in . |
12 |
> Pleas specify another value or" press enter for the same, type "shell" |
13 |
for |
14 |
> a shell, or "q"to skip.. |
15 |
> root block device():: |
16 |
> |
17 |
> However at this point the computer is hung and I am no longer able to |
18 |
> input anything. I just switched over to gentoo from bsd a year or so ago |
19 |
> and am still a newbie at some of the installation procedures but I |
20 |
believe |
21 |
> I have followed the manual correctly with the only change being that |
22 |
/boot |
23 |
> is located on the root partition and not a seperate partition. I'm still |
24 |
> able to use my older kernel without a problem and the only difference |
25 |
that |
26 |
> I can note between the two is that older kernel seems to load in a bunch |
27 |
> of modules and starts mdev, I believe, before trying to locate root. I am |
28 |
> also using Lilo since my motherboard doesn't seem to like grub. Any help |
29 |
I |
30 |
> could get would be appreciated. |
31 |
> |
32 |
> roger |
33 |
> |
34 |
> Here is a print out of lilo.conf |
35 |
> boot=/dev/sdb |
36 |
> map=/boot/map |
37 |
> |
38 |
> prompt |
39 |
> timeout=50 |
40 |
> default=Windows |
41 |
> |
42 |
> image=/boot/kernel-genkernel-x86_64-2.6.38-gentoo-r6 |
43 |
> label=2.6.38 |
44 |
> read-only |
45 |
> append="real_root=/dev/sdb2" |
46 |
> vga=773 |
47 |
> initrd=/boot/initramfs-genkernel-x86_64-2.6.38-gentoo-r6 |
48 |
> |
49 |
> image=/boot/kernel-genkernel-x86_64-3.2.1-gentoo-r2 |
50 |
> label=3.2.1 |
51 |
> read-only |
52 |
> append="real_root=/dev/sdb2" |
53 |
> initrd=/boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2 |
54 |
> |
55 |
> |
56 |
> other=/dev/sda1 |
57 |
> label=Windows |
58 |
> |
59 |
> |
60 |
> Here is a print out of fdisk |
61 |
> Disk /dev/sdb: 80.0 GB, 80026361856 bytes |
62 |
> 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors |
63 |
> Units = sectors of 1 * 512 = 512 bytes |
64 |
> Sector size (logical/physical): 512 bytes / 512 bytes |
65 |
> I/O size (minimum/optimal): 512 bytes / 512 bytes |
66 |
> Disk identifier: 0x37cd3650 |
67 |
> |
68 |
> Device Boot Start End Blocks Id System |
69 |
> /dev/sdb1 2048 12584959 6291456 82 Linux swap / |
70 |
Solaris |
71 |
> /dev/sdb2 * 12584960 14682111 1048576 83 Linux |
72 |
> /dev/sdb3 14682112 156301487 70809688 5 Extended |
73 |
> /dev/sdb5 14684160 18878463 2097152 83 Linux |
74 |
> /dev/sdb6 18880512 23074815 2097152 83 Linux |
75 |
> /dev/sdb7 23076864 65019903 20971520 83 Linux |
76 |
> /dev/sdb8 65021952 156301487 45639768 83 Linux |
77 |
> |
78 |
> Here is a print out of fstab |
79 |
> # /etc/fstab: static file system information. |
80 |
> # |
81 |
> # noatime turns off atimes for increased performance (atimes normally |
82 |
aren't |
83 |
> # needed); notail increases performance of ReiserFS (at the expense of |
84 |
> storage |
85 |
> # efficiency). It's safe to drop the noatime options if you want and to |
86 |
> # switch between notail / tail freely. |
87 |
> # |
88 |
> # The root filesystem should have a pass number of either 0 or 1. |
89 |
> # All other filesystems should have a pass number of 0 or greater than 1. |
90 |
> # |
91 |
> # See the manpage fstab(5) for more information. |
92 |
> # |
93 |
> |
94 |
> # <fs> <mountpoint> <type> |
95 |
> <opts> <dump/pass> |
96 |
> |
97 |
> # NOTE: If your BOOT partition is ReiserFS, add the notail option to |
98 |
opts. |
99 |
> /dev/sdb2 / ext3 noatime |
100 |
|
101 |
> 0 1 |
102 |
> /dev/sdb1 none swap sw |
103 |
|
104 |
> 0 0 |
105 |
> |
106 |
> /dev/sdb5 /var ext3 defaults |
107 |
> 1 2 |
108 |
> /dev/sdb6 /tmp ext3 defaults |
109 |
> 1 2 |
110 |
> /dev/sdb7 /usr ext3 defaults |
111 |
> 1 2 |
112 |
> /dev/sdb8 /home ext3 |
113 |
defaults |
114 |
> 1 2 |
115 |
> |
116 |
> /dev/cdrom /mnt/cdrom auto noauto,ro |
117 |
> 0 0 |
118 |
> |
119 |
> /dev/sda2 /mnt/Windows ntfs defaults |
120 |
> 1 2 |
121 |
> |
122 |
> proc /proc proc |
123 |
> defaults 0 0 |
124 |
> shm /dev/shm tmpfs |
125 |
> nodev,nouisd,noexec 0 0 |
126 |
> |
127 |
> #tmpfs /var/tmp/portage tmpfs |
128 |
> size=500M,mode=0777 0 0 |
129 |
> |
130 |
> |
131 |
> |
132 |
> |
133 |
> |
134 |
|
135 |
Something else ... |
136 |
|
137 |
LiLO doesn't need/use this "real_root= " convention. It knows that |
138 |
/dev/sdb2 is /dev/sdb2. So, according to your fdisk and /etc/fstab output, |
139 |
I think this /etc/lilo.conf should work for you: |
140 |
|
141 |
[code] |
142 |
# Faster, but won't work on all systems: |
143 |
compact |
144 |
# Should work for most systems, and does not have the sector limit: |
145 |
lba32 |
146 |
# If lba32 does not work, use linear: |
147 |
#linear |
148 |
vga=773 |
149 |
# MBR to install LILO to: |
150 |
boot = /dev/sda |
151 |
map = /boot/.map |
152 |
default = Windows |
153 |
install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you |
154 |
# do not need boot-{text,menu,bmp}.b in |
155 |
# /boot, as they are linked into the lilo |
156 |
# binary. |
157 |
|
158 |
menu-scheme=Wb |
159 |
prompt |
160 |
|
161 |
# If you always want to see the prompt with a 5 second timeout: |
162 |
timeout=50 |
163 |
# Will automatically reboot your computer in 10 seconds if kernel panics |
164 |
append="panic=10" |
165 |
# |
166 |
# End LILO global section |
167 |
# |
168 |
# Linux bootable partition config begins |
169 |
# |
170 |
image = /boot/kernel-genkernel-x86_64-3.2.1-gentoo-r2 |
171 |
root = /dev/sdb2 |
172 |
label = 3.2.1 |
173 |
initrd = /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2 |
174 |
read-only # Partitions should be mounted read-only for checking |
175 |
image = /boot/kernel-genkernel-x86_64-2.6.38-gentoo-r6 |
176 |
root = /dev/sdb2 |
177 |
label = 2.8.38 |
178 |
initrd = /boot/initramfs-genkernel-x86_64-2.6.38-gentoo-r6 |
179 |
read-only # Partitions should be mounted read-only for checking |
180 |
|
181 |
# |
182 |
# DOS bootable partition config begins |
183 |
# |
184 |
other = /dev/sda1 |
185 |
label = Windows |
186 |
table = /dev/sda |
187 |
# |
188 |
# DOS bootable partition config ends |
189 |
# |
190 |
[/code] |
191 |
|
192 |
Leave off the two lines with the code tags ... that's my attempt to make |
193 |
formatting look nice. <:-)} |
194 |
|
195 |
In your /etc/fstab output I see: |
196 |
/dev/sda2 /mnt/Windows ntfs defaults |
197 |
1 2 |
198 |
|
199 |
Is Windows on /dev/sda2, or is this some type of shared partition? (Your |
200 |
lilo.conf has Windows at /dev/sda1) |
201 |
You might want to change that Windows partition in /etc/fstab from 1 2 to |
202 |
0 0 so that fsck doesn't check it. Read "man fstab", particularly " The |
203 |
sixth field" |
204 |
|
205 |
Okay, let's run that up the flagpole and see if it flies! |
206 |
-- |
207 |
Happy Penguin Computers >`) |
208 |
126 Fenco Drive ( \ |
209 |
Tupelo, MS 38801 ^^ |
210 |
662-269-2706; 662-491-8613 |
211 |
support at happypenguincomputers dot com |
212 |
http://www.happypenguincomputers.com |