Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
How do you create a new initrd image on a linux (2.6) that does not have the mkinitrd script? I've seen that lots of distros come with this script called mkinitrd for creating a new initrd image.
Perhaps there is a generic mkinitrd package to download and install?
If yes, where can I get it?
If no, is it wise to use another mkinitrd script package that belongs to another linux distribution?
Look for a package that contains your distro's mkinitrd command. It is actually a script, and it tends to be customized for each distro.
Creating an initrd file is the last step in building a kernel, so I'm sure your distro should have it.
On my system, the initrd-<version>.gz is a compressed cpio archive. On others it is a compressed ext2 filesystem image. You can extract the files from an initrd image with "cpio -vid < /path/to/initrd". After doing that you can modify the files you want and then use cpio and then gz to recreate it.
It would be better, however, to locate the packages you need. Look for a howto on compiling a kernel. It should say which packages you need, which should include one needed to create an initrd file.
This linux image of mine doesn't seem to have one. I found and downloaded one from a Slackware FTP site and I'm testing it as we speak. Seems to work fine so far, but the real test will be when I boot it. Right now I'm trying to compile some binaries for the initrd.
You can actually make one yourself, but it might take a while. The initrd contains a mini-filesystem in a gzipped cpio archive, so you can extract it and look inside with cpio --extract (consult the man page, I'm not sure about exactly how to use cpio).
To make one you do the same thing in reverse. Google "initrd cpio" and you'll find stuff...YMMV
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.