Gentoo Archives: gentoo-user

From: Thufir <hawat.thufir@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] 7. Configuring the Kernel
Date: Sat, 17 Nov 2007 12:09:08
Message-Id: fhmkvu$o94$1@ger.gmane.org
1 I'm currently getting error 15 from GRUB, of the "Code Listing 4.2: Grub
2 Output - Booting an Entry" variety. I can boot into either Gentoo or
3 Fedora, but not into Gentoo with the new kernel.
4
5 The Gentoo doc's say to "First, verify that the root and setup lines you
6 have used are correct." I don't know how to verify that the root and
7 setup lines are correct. The only difference between entries for the two
8 Gentoo kernels are the kernels specified in GRUB. The /boot/ partition
9 would look to be (hd1,0) and the root partition would look to be /dev/
10 hdb3; at a minimum these work for the genkernel so should work for the
11 new kernel.
12
13 Perhaps it's a naming convention? I gave the kernel a name meaningful to
14 me, not knowing what other name to give it version wise. I can always
15 recompile the kernel if necessary. Could it be a modules issue? I
16 didn't understand that step of configuring the kernel. However, it might
17 be something else, as it would seem to me that it would still at least
18 *start* to boot and not give this particular error:
19
20 "Code Listing 4.2: Grub Output - Booting an Entry
21
22 Booting 'gentoo Linux'
23
24 root (hd0,0)
25 Filesystem type is ext2fs, partition type 0x83
26 kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/hda3 vga=792
27
28 Error 15: File not found
29 Press any key to continue..."
30
31 although some of the particulars are different.
32
33
34 Here's what I have so far:
35
36
37 arrakis ~ #
38 arrakis ~ # cat /boot/grub/grub.conf
39 default 0
40 timeout 30
41 splashimage=(hd1,0)/grub/splash.xpm.gz
42
43
44 title=Gentoo Linux with ALSA
45 root (hd1,0)
46 kernel /kernel-has-alsa root=/dev/hdb3
47
48 title=Gentoo Linux
49 root (hd1,0)
50 kernel /kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0
51 init=/linuxrc ramdisk=8192 real_root=/dev/hdb3
52 initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5
53
54 title Fedora (2.6.21-1.3228.fc7)
55 root (hd0,1)
56 kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
57 initrd /initrd-2.6.21-1.3228.fc7.img
58 arrakis ~ #
59 arrakis ~ # cat /boot/grub/grub.conf.1
60 default 0
61 timeout 30
62 splashimage=(hd1,0)/grub/splash.xpm.gz
63
64 title=Gentoo Linux
65 root (hd1,0)
66 kernel /kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/
67 linuxrc ramdisk=8192 real_root=/dev/hdb3
68 initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5
69
70 title=Gentoo Linux 2
71 root (hd1,0)
72 kernel /kernel-has-alsa root=/dev/ram0 init=/linuxrc ramdisk=8192
73 real_root=/dev/hdb3
74 initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5
75
76
77 title Fedora (2.6.21-1.3228.fc7)
78 root (hd0,1)
79 kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=LABEL=/ rhgb quiet
80 initrd /initrd-2.6.21-1.3228.fc7.img
81 arrakis ~ #
82 arrakis ~ #
83 arrakis ~ # ll /boot/
84 total 11033
85 -rw-r--r-- 1 root root 980149 Apr 21 2007 System.map-genkernel-
86 x86-2.6.19-gentoo-r5
87 lrwxrwxrwx 1 root root 1 Jul 26 02:45 boot -> .
88 drwxr-xr-x 2 root root 1024 Nov 17 01:21 grub
89 -rw-r--r-- 1 root root 5455004 Apr 21 2007 initramfs-genkernel-
90 x86-2.6.19-gentoo-r5
91 -rw-r--r-- 1 root root 2137705 Apr 21 2007 kernel-genkernel-x86-2.6.19-
92 gentoo-r5
93 -rw-r--r-- 1 root root 2658736 Nov 16 23:52 kernel-with-alsa
94 drwx------ 2 root root 12288 Jul 26 02:36 lost+found
95 arrakis ~ #
96 arrakis ~ #
97 arrakis ~ # mount
98 /dev/hdb3 on / type ext3 (rw,noatime)
99 proc on /proc type proc (rw)
100 sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
101 udev on /dev type tmpfs (rw,nosuid)
102 devpts on /dev/pts type devpts (rw,nosuid,noexec)
103 /dev/hdb1 on /boot type ext2 (rw)
104 none on /dev/shm type tmpfs (rw)
105 /dev/mapper/VolGroup00-LogVol00 on /mnt/VolGroup00/LogVol00 type ext3
106 (rw,noexec,nosuid,nodev)
107 usbfs on /proc/bus/usb type usbfs
108 (rw,noexec,nosuid,devmode=0664,devgid=85)
109 arrakis ~ #
110 arrakis ~ # cat /etc/gentoo-release
111 Gentoo Base System release 1.12.9
112 arrakis ~ #
113 arrakis ~ # date
114 Sat Nov 17 03:49:42 PST 2007
115 arrakis ~ #
116 arrakis ~ #
117
118
119
120
121
122 thanks,
123
124 Thufir
125
126 --
127 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] 7. Configuring the Kernel Mick <michaelkintzios@×××××.com>