LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 11-06-2007, 08:37 PM   #1
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 465

Rep: Reputation: 31
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
 
Old 11-06-2007, 09:42 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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
 
Old 11-06-2007, 09:57 PM   #3
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 465

Original Poster
Rep: Reputation: 31
Thanks Pixellany,

I'll sink my teeth into this and post my success/failure.

Cheers,

ab
 
Old 11-06-2007, 10:10 PM   #4
aquaboot
Member
 
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 465

Original Poster
Rep: Reputation: 31
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
 
Old 11-07-2007, 12:04 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB Error 2 & boot partition questions - can't boot Thirteenth Zodiac Ubuntu 9 08-06-2007 01:21 PM
ubuntu 6.10 install (dual boot with XP) - how to put grub in /dev/hda9? Airidh Ubuntu 5 04-05-2007 09:54 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 01:09 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 11:56 AM
Howto: remove lilo & put win2k boot loader back? hugodog Linux - General 2 05-10-2002 01:45 PM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration