LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-27-2008, 10:58 AM   #1
akvino
Member
 
Registered: May 2007
Posts: 31

Rep: Reputation: 15
Something of the general nature - Ramdisk


I have a general question, maybe from lacking time to dig into the man pages or getting more personal with Python, Perl and C-shell scripts but here it goes.

When Linux boots, it is booting from an .img file that holds the Kernel image. In the kernel image there are modules compiled. When you install or uninstall modules, you are required to replace the RAM image or the memory image with mkinitrd command....

Can someone with uber understanding of how this process occurs share "in plain English, I hope" their valuable knowledge and let us know how Kernel image relates to the image in ramdisk, and why is this necessary, what does it do on the OS level.

Thanks a bunch.
 
Old 06-28-2008, 06:51 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I don't have an "uber" understanding, but you can get a lot better understanding by purposefully breaking it. Namely, install two or more different versions of a kernel (like i486 and i686) and then modify grub to mismatch the kernel and initrd.img files. See what breaks. Play around in busybox. See what hardware no longer works (the first time I made the mistake, the mouse didn't work and it took me a while to figure out what mistake I made).

I gained a lot of understanding of what was going on in initrd.img when I wanted to modify the booting process to load the entire OS into RAM instead of merely mounting the root partition directly. I read a lot of scripts in the /usr/share/initramfs-tools/ directory tree until I finally found the script I'd modify (/usr/share/initramfs-tools/scripts/local/). In all cases, the "head honcho" is "init". Everything else is ultimately started from init.
 
Old 06-28-2008, 07:08 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by akvino View Post
When Linux boots, it is booting from an .img file that holds the Kernel image. In the kernel image there are modules compiled. When you install or uninstall modules, you are required to replace the RAM image or the memory image with mkinitrd command...
Nope. None of my systems (built by me) use initrd.
A very minor amount of effort on your part would have found this in wikipedia.
Plenty of other references exist as well.
 
  


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
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
LXer: The Contradictory Nature of OOXML LXer Syndicated Linux News 0 01-18-2007 07:54 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Nature Of War HadesThunder General 17 05-18-2004 03:09 PM
Bugs in Mandrake 9.2 or the nature of the best? Sociologo Mandriva 19 11-25-2003 04:43 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:48 PM.

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