Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
switching kernels (grub)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
FatherBusa
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 166

PostPosted: Sun Mar 21, 2004 4:03 am    Post subject: switching kernels (grub) Reply with quote

Hey All,

I've spent the last couple of days trying to get gentoo installed. I'm running into fairly standard problems (most of them unrelated to gentoo as such), and I'm knocking them down one by one. One problem, though, has me baffled.

I've been building my own kernels for years, and I have 2.6.4 running on all of my boxes, so I emerged the development-sources and did a manual build. I then setup grub (which is new -- I've always used LILO), rebooted, and everything went fine.

I had a couple of odd problems, so I decided to fiddle around with the kernel some more. In the middle of it, I changed my mind and decided to play around with the tweaked gentoo-dev-sources. So, I just emerged that, re-linked my /usr/src/linux directory, ran make menuconfig, and copied the new image and the system map to /boot.

I then went into /boot/grub/grub.conf and set it like so:

root (hd0,0)
kernel (hd0,0)/kernel-2.6.3 root=/dev/hda3

[kernel-2.6.3 being the name of the new image]

Problem is, grub won't load that kernel. It doesn't show up as an option on that little boot menu that comes up, and I can't seem to figure out how how to add it.

I'm sure I'm overlooking something simple, but I can't figure it out.

And while I have you on the line, what's the proper way to get rid of the old kernel (assuming I get this working)?
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sun Mar 21, 2004 4:20 am    Post subject: Reply with quote

Try changing to this:
Code:
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.3 root=/dev/hda3

(Notice the full path to the image)

Also, to remove the old kernel, just `emerge unmerge <sources>`. You can specify exactly which sources by version number if you have two of the same sources but different versions. `man emerge` for details.

Also, you can delete /usr/src/linux-<old-version> and /lib/modules/<old-version>
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
FatherBusa
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 166

PostPosted: Sun Mar 21, 2004 4:34 am    Post subject: Reply with quote

Alas, that doesn't seem to work. It still thinks 2.6.4 (the first kernel I built) is the only one.

Perhaps I did something else wrong. My procedure was something like this:

emerge =gentoo-dev-sources
ln -s linux-2.6.3-gentoo-r1 linux
cd linux
make menuconfig
make
make modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.3
cp System.map /boot/System.map-2.6.3

My grub.conf is in /boot/grub and looks like this:

default 0
timeout 30
title=Gentoo Linux 2.6.3
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.6.3 root=/dev/hda3

Is everything controlled from that grub.conf file?
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sun Mar 21, 2004 4:51 am    Post subject: Reply with quote

If you have /boot on a different partition, did you remember to mount /boot before copying files to it?

Very common.
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
FatherBusa
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 166

PostPosted: Sun Mar 21, 2004 4:59 am    Post subject: Reply with quote

Eureka!

I am profoundly confused (how was I able to copy files to /boot when it wasn't mounted?), but I'll go figure this out on my own.

Thank you so much. What they say of the gentoo folks is obviously true: they're friendly, respond quickly, and usually have the right answer.
Back to top
View user's profile Send private message
froke
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 174
Location: Westside USA

PostPosted: Sun Mar 21, 2004 5:06 am    Post subject: Reply with quote

There really is no explaination, check out this similar thread https://forums.gentoo.org/viewtopic.php?t=150058
_________________
Top notch image hosting. Great for screen shots! http://www.imagelink.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum