Gentoo Archives: gentoo-user

From: Matt Harrison <iwasinnamuknow@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub boot problem
Date: Sat, 05 Jul 2008 23:47:15
Message-Id: 487007FE.8090805@genestate.com
In Reply to: Re: [gentoo-user] grub boot problem by "Matthew R. Lee"
1 Matthew R. Lee wrote:
2 > On Saturday 05 July 2008 19:15:05 Mick wrote:
3 >> On Sunday 06 July 2008, Matthew R. Lee wrote:
4 >>> I've just compiled a new kernel, but when I reboot grub will not load the
5 >>> new kernel. I get error 15 (file not found). But the file is there.
6 >>> Yes grub is install properly and yes the boot partition was mounted when
7 >>> I copied the new kernel across and changed the grub.conf. What's really
8 >>> confusing me is there's no syntax error in the grub.conf that I can see,
9 >>> and the first kernel on the list boots fine. Anyone got any cluse as to
10 >>> why grub can't see the second kernel?
11 >>>
12 >>> [grub.conf]
13 >>> default 0
14 >>>
15 >>> timeout 30
16 >>>
17 >>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz
18 >>>
19 >>> title=Gentoo 2.6.22-r2
20 >>>
21 >>> root (hd0,0)
22 >>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3
23 >>> video=vesafb:mtrr,ywrap,1280x800-24@70
24 >>>
25 >>> title=Gentoo 2.6.24-r8
26 >>>
27 >>> root (hd0,0)
28 >>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3
29 >>> video=vesafb:mtrr,ywrap,1280x800-24@70
30 >> Could you please show us:
31 >>
32 >> $ mount
33 >>
34 >> and
35 >>
36 >> # ls -la /boot
37 >
38 > /dev/sda3 on / type ext3 (rw,noatime)
39 > proc on /proc type proc (rw)
40 > sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
41 > udev on /dev type tmpfs (rw,nosuid)
42 > devpts on /dev/pts type devpts (rw,nosuid,noexec)
43 > shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
44 > usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
45 > /dev/sda1 on /boot type ext2 (rw)
46 >
47 > total 17256
48 > drwxr-xr-x 5 root root 1024 Jul 5 18:28 .
49 > drwxr-xr-x 21 root root 4096 Dec 29 2007 ..
50 > drwxr-xr-x 4 root root 1024 Aug 16 2007 boot
51 > -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5
52 > -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6
53 > -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4
54 > -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2
55 > -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8
56 > -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5
57 > drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub
58 > -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata
59 > -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5
60 > -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6
61 > -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4
62 > -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2
63 > -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8
64 > -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5
65 > drwx------ 2 root root 12288 Dec 27 2007 lost+found
66 > -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5
67 > -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6
68 > -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4
69 > -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2
70 > -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8
71 > -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5
72 >
73 > I should probably give /boot a clean, but could this be the problem?
74 >
75
76 According to your grub.conf your default is the top entry, but the
77 kernel image for that doesn't exist in your boot partition.
78
79 kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3
80
81 should probably be
82
83 kernel /boot/kernel-2.6.22-r2 root=/dev/sda3
84
85 Thats if 2.6.22-r2 is the kernel your trying to boot.
86
87 HTH
88
89 Matt
90 --
91 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] grub boot problem Dale <dalek1967@×××××××××.net>
Re: [gentoo-user] grub boot problem "Matthew R. Lee" <gentoo@××××××××××.org>