Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


View Poll Results: How do you currently install new kernels?
From pre-compiled binaries available for my distro 0 0%
I download the source code and compile my new kernels 3 60.00%
Dunno, just use the one that came with my distro 2 40.00%
Voters: 5. You may not vote on this poll

  Search this Thread
Old 09-09-2004, 02:57 AM   #1
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30

Hi. I am just wondering where the initrd file in your /boot directory comes from. I have tried recompiling my kernel and it doesn't generate a new initrd. Could someone please explain where to find the initrd after compiling a kernel, so that I may copy it to my /boot folder. I would like to install kernel onto SuSE 9.1 Pro. Anyways, this is the one thing that really confuses me about compiling a kernel so any help would be greatly appreciated. Also, I was told when I download the kernel source to save the tar file in /usr/src and then extract it there. Does this replace the /usr/src/linux link to your current linux source with a new link to your new kernel source? Or do you just change the link yourself?
Old 09-09-2004, 03:05 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I compile my own kernels, and I don't use
initrd at all ... there is none in my /boot

Old 09-09-2004, 03:16 AM   #3
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
you generate a new one with 'mk_initrd'
Old 09-09-2004, 05:02 AM   #4
Registered: May 2004
Distribution: Slackware 9.1 and 10
Posts: 35

Rep: Reputation: 15
I've never had the need to use initrd on any of my systems, as for installing new kernels I compile them from source.
Old 10-15-2004, 12:29 AM   #5
LQ Newbie
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Here is the process:

1. untar the source in /usr/src and re-adjust the sym link.
2. cd to /usr/src/linux
3. when u will build linux, it will not generate ram disk image. So , after u r done will making and installing kernel source and modules, use the following command to create initrd file
Note: installing modules is very important before you do this step

/sbin/mk_initrd -k "list of kernels" -i "list of initrd files"

in your case:
list of kernels: vmlinuz- (this would have got created in your /boot dierctory if you had used make to build the kernel, otherwise if you have used 'make bzImage', you'll have to cp the file from /usr/src/linux/arch/<arch>/boot/bzImage to /boot and rename it to 'vmlinuz-')

list of initrd files: just type 'initrd-"

this should create an initrd- in your /boot directory

4. Now you can modify your bootloader config file (/boot/grub/menu.lst or /etc/lilo.conf) to include the new kernel image and initrd

Ashish Jain
Old 10-15-2004, 03:32 AM   #6
Senior Member
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
This is very confusing....On my FC2, if I don't have an initrd, my system won't boot (kernel panic). I compile it with making "make install" after compile the kernel and modules, under the same kernel source directory.

How can be some systems require it and other don't??


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
what is initrd? PinRojas Linux - Newbie 2 06-16-2005 11:18 AM
initrd chris318 Linux - Software 1 02-27-2005 04:28 PM
Do I even need an initrd? chadman Linux - General 3 02-20-2005 09:53 PM
initrd tekbuz Debian 2 08-04-2004 12:34 PM
using initrd? e1000 Linux - General 4 02-19-2004 07:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:26 PM.

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