LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-20-2005, 04:04 PM   #1
dresnu
LQ Newbie
 
Registered: Mar 2005
Distribution: Ubuntu 5.04
Posts: 12

Rep: Reputation: 0
kernel compiling


This my first experience compling a kernel the debian way. I followed line by line the instructions found on this page http://www.ubuntulinux.org/wiki/KernelCompileHowto. Everything went ok except i can't boot the new kernel because I can't find what initrd to put in grub. The FAQ says that there should be an initrd automatically generated(?) but after installing the kernel with dpkg -i kernel-image-2.6.8.1_custom.1.0_i386.deb I can find the new kernel settings in grub but the initrd line is missing! What am I doing wrong?

Thanks!
 
Old 04-20-2005, 04:29 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
You can make the initrd file with the command mkinitrd name_of_the_initrd_file version_of_your_kernel

You can make up the name for the initrd file as long as you write it to /boot/grub/grub.conf file exactly as you named it. And about the kernel version number. You can get it in /usr/lib/modules (I think), there is a directory called 2.6.8.1 probably, so you have to use that number exactly as the directory in there is named. So an example of the command would be:

mkinitrd /boot/initrd-2.6.8.1-my_initrd_file 2.6.8.1

Be sure to update the grub.conf file accordingly.

Good luck!
 
Old 04-20-2005, 06:10 PM   #3
speel
Member
 
Registered: Apr 2004
Posts: 354

Rep: Reputation: 30
hey just a curious question .. why do you want to compile your kernel any way?
 
Old 04-20-2005, 07:28 PM   #4
dresnu
LQ Newbie
 
Registered: Mar 2005
Distribution: Ubuntu 5.04
Posts: 12

Original Poster
Rep: Reputation: 0
Thx marghorp for the mkinitrd sugestion it helped me find what I was looking for. In ubuntu it's a bit different though, I found the exact solution here: http://www.ubuntuforums.org/showthr...hlight=mkinitrd.
I want to compile the kernel in order to remove support for things that i don't have/use. There's certainly a debate on how much this can speed up your system(if it really does?) but you surely get a lighter kernel this way. Also I like to keep my kernel up to date so that I can benefit of the latest bug fixes. And finally like a friend of mine says "this way you have your own unique linuxbox",hehe.
 
Old 04-20-2005, 07:30 PM   #5
dresnu
LQ Newbie
 
Registered: Mar 2005
Distribution: Ubuntu 5.04
Posts: 12

Original Poster
Rep: Reputation: 0
oops, that's the link: http://www.ubuntuforums.org/showthre...light=mkinitrd
 
Old 04-21-2005, 06:03 AM   #6
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Why ompile your kernel? Just one thing, that comes to mind. Hotplugging USB devices took my box a minute or so, and it now takles only 5 secs after I only left the support for the USB dvices I use. And the overall loading of my box was reduced from 1minute 30 seconds to 23 seconds

The trick is to compile into the kernel only the things you need at boot time (like ext2 support and such). Everything else is best compiled as modules as it leaves the kernel intact and light (and FAST).

Sorry if this is not the thread to post this into.
 
  


Reply



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
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 02:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 04:17 AM
Help! Everything seems to be compiling into kernel! KuRe Slackware 18 12-17-2003 08:04 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:46 AM.

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
Open Source Consulting | Domain Registration