LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2005, 06:48 PM   #1
Erik_the_Red
Member
 
Registered: Jun 2003
Location: Georgia
Distribution: Arch
Posts: 113

Rep: Reputation: 15
Necessity of initrd in building a kernel?


I followed all the steps here, but that guide made no mention of the INITRD. A more advanced guide - found here - did mention it.

So, in GRUB, I simply have this typed:

Code:
title           Ubuntu, kernel 2.6.12.3-386
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.12.3 root=/dev/hda1 ro quiet splash
savedefault
boot
However, the one I boot into is like this:

Code:
title           Ubuntu, kernel 2.6.10-5-386
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 ro quiet splash
initrd          /boot/initrd.img-2.6.10-5-386
savedefault
boot
What should I do about initrd?

sudo mkinitrd /boot/initrd-2.6.12.3.img 2.6.12.3 did not seem to work.
 
Old 08-13-2005, 08:21 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You only need an initrd if there are drivers that your kernel needs to boot (such as the filesystem driver for the root filesystem) that are not built into it and have to be loaded as modules. These modules would be put on the initrd so the kernel could load them. For custom compiled kernels, I personally just compile everything necessary in and don't bother with the initrd.
 
Old 08-13-2005, 08:48 PM   #3
Erik_the_Red
Member
 
Registered: Jun 2003
Location: Georgia
Distribution: Arch
Posts: 113

Original Poster
Rep: Reputation: 15
I guess I need them because when I tried booting into 2.6.12.3, I got a kernel panic.
 
Old 08-13-2005, 08:53 PM   #4
Erik_the_Red
Member
 
Registered: Jun 2003
Location: Georgia
Distribution: Arch
Posts: 113

Original Poster
Rep: Reputation: 15
I ran a search on google with the keywords 'Compile 2.6 Kernel' and the first result I got was a compile howto geared towards Debian.

I guess the command is:

Code:
mkinitrd -o /boot/initrd.img-2.6.12.3 2.6.12.3
 
  


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
Kernel 2.6: I don't want/need initrd ... sundialsvcs Linux - Software 1 08-20-2005 09:25 AM
Problems with Initrd and Kernel 2.6.8 Lycus_adr0 Linux - Software 0 08-23-2004 11:58 AM
how many cd is necessity for mandrake 10.0 to install mfeyzifar Mandriva 6 05-09-2004 12:04 PM
New Kernel/Initrd problems lacerto Linux - Software 3 10-19-2003 06:00 AM
necessity of makefiles Jo_Nak Linux - General 2 06-09-2003 12:49 PM


All times are GMT -5. The time now is 05:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration