SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.