| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-06-2007, 07:37 PM
|
#1
|
|
Member
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 462
Rep:
|
boot & grub... where do I put kernel pointers?
Hi All,
I've just downloaded and configured my first kernel. I've done make modules_install and make install. I've tweaked my menu.lst to list all kernels (instead of using the escape button)and now I need to add grub entrees so it can find the kernel. This is the part that confuses me. The howto I used said that make install would take care of this, but it didn't seem to. This is the grub entry for my working kernel:
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /vmlinuz-2.6.22-14-generic root-UUID=my_root_id ro quiet
splash
initrd /initrd.img-2.6.22-14-generic
I'm pretty sure that the important lines here are the last two, but I'm having trouble making sense of what they are.
Also, I believe I need to do something with the System.map file but am not sure what. Anything else that I need to do? I'm sooo close to building and properly installing my first kernel but just need a little help.
Thanks Much,
ab
|
|
|
|
11-06-2007, 08:42 PM
|
#2
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
The generic format of an entry in menu.lst:
title whatever
root (hdx,y) #the location of /boot directory
kernel /boot/<kernelname> root=/dev/xxxx <other optional arguments)
initrd /boot/<initfilename>
boot
The above assume that there is no separate partition for /boot---ie "/" is mounted at the location equivalent to (hdx,y)
<kernelname> and <initfilename> are the actual names. What I always do is alias them to generic names--eg "vmlinuz" and "initrd". then, my menu.lst entries are always the same.
root=/dev/xxxx is a command passed to the kernel which tells it where to mount "/" Suppose it is /dev/hda3. Then the root (hdx,y) command would be (hd0,2) (Grub counts from zero.)
More in the "booting" link below
|
|
|
|
11-06-2007, 08:57 PM
|
#3
|
|
Member
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 462
Original Poster
Rep:
|
Thanks Pixellany,
I'll sink my teeth into this and post my success/failure.
Cheers,
ab
|
|
|
|
11-06-2007, 09:10 PM
|
#4
|
|
Member
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 462
Original Poster
Rep:
|
Sorry, forgot to follow up on System.map. I found this explanation online:
"Every time you compile a new kernel, the addresses of various symbol names are bound to change. When you compile a new kernel, your old System.map has wrong symbol information. A new System.map is generated with each kernel compile and you need to replace the old copy with your new copy."
Indeed, I see that my newly compiled kernel has a System.map in the top of the directory tree. Do I need to replace the older /boot/System.map with this new one?
Thanks for your help and patience,
ab
|
|
|
|
11-07-2007, 11:04 AM
|
#5
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
Quote:
|
Do I need to replace the older /boot/System.map with this new one?
|
The only time I ever made my own kernel, I do not recall having to do this. But---it seems logical. Backup the existing file and try it.
In any event it is a separate issue from setting up grub.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|