Portal Home > Knowledgebase > Articles Database > Grub and kernel
Grub and kernel
Posted by b3nz, 07-09-2008, 03:42 PM |
Hello,
i compiled my kernel and i have problem.. i dont have lilo on my server so i dont know how to change the grub.conf file to boot my new kernel..
any thoughts?
thanks
|
Posted by sirius, 07-09-2008, 03:46 PM |
Moved to Technical and Security Issues....
Sirius
|
Posted by simonapnic, 07-09-2008, 03:50 PM |
Yes, go to /boot/grub first.
Open up menu.lst and put something like:
title Debian GNU/Linux, kernel 2.6.18-6-686
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/sda3 ro
initrd /boot/initrd.img-2.6.18-6-686
savedefault
That's how it looks like on a Debian with kernel 2.6.18-6-686.
|
Posted by Gary Brahmi, 07-10-2008, 07:47 AM |
The answer is partially correct. The reason I say partially is because the actual file which needs to be edited is /boot/grub/grub.conf. menu.lst in /boot/grub is nothing but a symbolic link to the grub.conf under the same folder.
So technically the answer is edit the grub.conf file under /boot/grub folder.
|
Posted by ub3r, 07-10-2008, 08:51 AM |
not on all distributions dude.
|
Posted by Gary Brahmi, 07-10-2008, 08:57 AM |
Ofcourse not on all distributions. But if I am not mistaken grub is more related to Fedora Project distributions and that's what my answer was referring to.
|
Posted by ub3r, 07-10-2008, 09:01 AM |
Many distributions use grub. As I can remember, fedora, centos, and the rest of the redhat copycats use grub. Freebsd has it's own boot manager. Opensolaris uses grub.
I think grub is starting to outnumber lilo as the boot manager on most distributions. Does anybody know what distributions are using lilo these days? Gentoo supports both lilo and grub.
|
Posted by Gary Brahmi, 07-10-2008, 09:20 AM |
Yes you are right with the distros mentioned and that is what I referred to. Maybe you have been more precise
I don't remember any distro running with lilo, maybe some BSD but not sure though.
|
Add to Favourites Print this Article
Also Read
TMS Problem? (Views: 702)