LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2009, 05:47 PM   #1
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
Using mkinitrd in 12.2 for multiple kernels


I have just recently been looking into creating initial ramdisks for my Slackware 12.2 kernels (two in all), and wnated to know if there is a method for creating multiples initrd.gz files for multiple kernels. I've read the REAME in the /boot directory on this, but was not certain how to go about it afterwards. I have a root partition on /dev/sda8 (which is a logical volume) and is a reiserfs drive. Since this is a SATA drive as well, I'm assuming I'll need to include other modules as well to the initrd. When I attempted to create an initrd for my customized 2.6.27.7-smp kernel, I was informed that I needed to add additional modules to the initrd-tree directory, but am unclear on this as well.

As of now, I just compiled in support for reiserfs directly to the kernel, but would like to create initial ramdisks for kernels in the future. Thank you.
 
Old 01-04-2009, 05:56 PM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by swampdog2002 View Post
I have just recently been looking into creating initial ramdisks for my Slackware 12.2 kernels (two in all), and wnated to know if there is a method for creating multiples initrd.gz files for multiple kernels. I've read the REAME in the /boot directory on this, but was not certain how to go about it afterwards. I have a root partition on /dev/sda8 (which is a logical volume) and is a reiserfs drive. Since this is a SATA drive as well, I'm assuming I'll need to include other modules as well to the initrd. When I attempted to create an initrd for my customized 2.6.27.7-smp kernel, I was informed that I needed to add additional modules to the initrd-tree directory, but am unclear on this as well.

As of now, I just compiled in support for reiserfs directly to the kernel, but would like to create initial ramdisks for kernels in the future. Thank you.
Read about -m and -k options in "man mkinitrd", and about "initrd" option in "man lilo.conf". As far as I know, you can specify initrd per option in lilo.conf. So just make few other boot entries in lilo.conf and his should be enough.
 
Old 01-04-2009, 06:02 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
As long as you do not specify the "-c" option (for "create") to your mkinitrd command, additional kernel modules can be added to an already existing initrd image.
What mkinitrd does if you don't use "-c", is to operate on the existing /boot/initrd-tree directory structure (left there by your previous mkinitrd command), add any modules you specified using the "-m" parameter for the kernel you specified with the "-k" parameter.

Modules for multiple kernels can be present in one and the same inird.gz file without any issue.
If you rather have multiple initrd.gz files, one for each kernel version you want to boot, use the "-o" parameter to specify a different filename from the default "/boot/initrd.gz" and make sure to use that name in /etc/lilo.conf as well!

Eric
 
1 members found this post helpful.
  


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
Multiple kernels SI_TW Linux - Kernel 5 10-23-2008 02:42 PM
Multiple kernels with different modules botzkoz Linux - Kernel 6 03-16-2008 07:26 PM
Running Multiple Kernels unosaso Slackware 2 04-05-2005 11:50 AM
Multiple Kernels apocolpse Linux - Newbie 3 03-17-2005 03:09 AM
Multiple kernels, one partition -- possible? Tino27 Linux - Newbie 2 11-05-2003 05:14 PM

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

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