View previous topic :: View next topic |
Author |
Message |
FatherBusa Apprentice
Joined: 21 Mar 2004 Posts: 166
|
Posted: Sun Mar 21, 2004 4:03 am Post subject: switching kernels (grub) |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Sun Mar 21, 2004 4:20 am Post subject: |
|
|
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 |
|
|
FatherBusa Apprentice
Joined: 21 Mar 2004 Posts: 166
|
Posted: Sun Mar 21, 2004 4:34 am Post subject: |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
Posted: Sun Mar 21, 2004 4:51 am Post subject: |
|
|
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 |
|
|
FatherBusa Apprentice
Joined: 21 Mar 2004 Posts: 166
|
Posted: Sun Mar 21, 2004 4:59 am Post subject: |
|
|
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 |
|
|
froke Apprentice
Joined: 16 Dec 2003 Posts: 174 Location: Westside USA
|
|
Back to top |
|
|
|
|
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
|
|