Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-29-2004, 02:59 AM   #16
Registered: Jul 2003
Distribution: OpenSUSE 11.4
Posts: 55
Blog Entries: 1

Rep: Reputation: 16

Originally posted by raid517
mkinitrd /boot/initrd-2.63
Where as, /bin/bash said:
Originally posted by raid517
 mkinitrd /boot/initrd.2.6.3.img 2.6.3
Which has one extra parameter - the kernel version, and some extra punctuation. /bin/bash's version is definitely what I would expect to do.

Because I haven't ever used SUSE, the following is speculation based on experience with Redhat. If SUSE has a /bin/installkernel or /sbin/installkernel, and you've done all the other steps in the kernel install process (make bzImage, make modules, make modules_install), then I think doing a "make install" in the kernel directory might do all the right things - such as making an initrd, and installing the kernel. But for all I know this might be a really bad thing to do on SUSE.
Old 02-29-2004, 03:43 AM   #17
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
good point /bin/bash..... I tend to think rather linear when it comes to giving advice. I.E - I have no need for it so why should you? But honestly, what other practical use is there to using an initrd image besides having a "pretty" background to your bootloader? If that was a concern for me, I suppose I would be booting into a runlevel 5 with flowers and cute pictures of teddy bears as well insted of init3.... There are a few other uses for initrd that are on the tip of my mind, but again, are they really necessary? It just seems really silly to rely upon external modules when the middleman can be kicked to the curb completely.... Your just increasing the complexity of your boot process and increasing the risk of your system not booting.... I'm all for simplicity I guess.... I also like it when I can consistently boot into any new kernel that I compile without a hitch.... Well, good post. I might have to expierment with using initrd just to learn some new stuff.....
Old 02-29-2004, 11:13 AM   #18
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
As was posted earlier mkinitrd is a script. And Suse may have their own version of that script. If you just type mkinitrd without parameters it should spit out some usage help, if you could do that and post it here. It looks to me like it is thinking /boot/initrd.2.6.3.img is the path to a /var/tmp directory instead of the name of the initrd file. Maybe Suse has the parameters in a different order. With Mandrake it is:
mkinitrd [options] <initrd.img> <kernel ver>

Posted by jong357
But honestly, what other practical use is there to using an initrd image besides having a "pretty" background to your bootloader?
I'm sure there are hundreds or thousands of uses for initrd of which I'm not aware, I just said that bootsplash was one instance where an initrd image was required and not an option.
Since you asked...
  1. Suppose you have a system with minimal ram and harddrive space. You can't even keep kernal sources on it so you build your kernel on another system and download it to this system. You build a modular kernel because of memory restraints and use initrd to pass modules needed for booting to the kernel. Then you can remove the modules when not needed and free up memory.
  2. You are a wannabe kernel hacker designing a new foobar adapter module. You don't want to build a new kernel every time you modify the module but the module is required to boot. So you put it in initrd and when you modify it you just make a new module and a new initrd and you don't need to make a new kernel.
  3. You have a scsi drive you use to transport large amounts of data to work and home. So sometimes you want to boot your kernel with scsi support and sometimes you don't (when you forget and leave the drive at work). You just modify /etc/lilo.conf and in the "Linux-scsi" section you put an initrd=/boot/initrd-scsi.img

Well thats just a couple instances I thought of off the top of my head, and probably there are many other. Using initrd is just another choice you have in Linux, it's there if you want to/need to use it.

Last edited by /bin/bash; 02-29-2004 at 11:21 AM.
Old 03-20-2004, 12:53 AM   #19
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian, LMDE, n some untus
Posts: 215

Rep: Reputation: 30
Hey bin/bash, would u take a look at my post, for I need an initrd for custom dsdt so I can fine tune acpi!

Thanks...2.6.4 acpi patch in debian...


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make initrd.img? zahadumy Slackware 2 11-13-2005 10:05 AM
make initrd error imagineaxion Debian 4 02-08-2005 10:29 AM
command to make initrd.img utanja Debian 12 09-06-2004 01:18 PM
New Kernel 2.4.22 won't make initrd jon1591 Linux - Newbie 3 12-13-2003 03:09 PM
How do you make a initrd and vmlinux file? britishnemesis Linux - General 10 11-03-2003 10:30 AM > Forums > Linux Forums > Linux - General

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