LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Necessity of initrd in building a kernel? (https://www.linuxquestions.org/questions/linux-newbie-8/necessity-of-initrd-in-building-a-kernel-352979/)

Erik_the_Red 08-13-2005 07:48 PM

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.

btmiller 08-13-2005 09:21 PM

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.

Erik_the_Red 08-13-2005 09:48 PM

I guess I need them because when I tried booting into 2.6.12.3, I got a kernel panic.

Erik_the_Red 08-13-2005 09:53 PM

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


All times are GMT -5. The time now is 09:13 AM.