LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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

Rep: Reputation: 30
Initrd?????


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 2.6.8.1 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
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 09-09-2004, 03:16 AM   #3
rshaw
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
BinaryLinux
Member
 
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
jainashish
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-2.6.8.1 (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-2.6.8.1')

list of initrd files: just type 'initrd-2.6.8.1"

this should create an initrd-2.6.8.1 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
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,079

Rep: Reputation: 59
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??
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:44 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