Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-06-2012, 11:37 PM
|
#1
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Rep: 
|
kernel , initrd and root file system
Hi all,
Recently I have started exploring about linux kernel. I have few queries.
a) What is the role for initrd(ramdisk) and how it is related to the root file system?
b)When does the kernel actually link to the root file system and the desktop environment(such as gnome) is created?
Please let me know
|
|
|
05-07-2012, 12:09 AM
|
#2
|
Member
Registered: Sep 2009
Posts: 684
Rep:
|
Initrd is a initial ram disk for loading a temporary file system into memory in the boot process of the Linux kernel.
This process happen before mounting root filesystem.
For a beginner its very hard to understand but i try to simplify.
To mount the root filesystem the OS must understand the underlying hardware structure
IDE/SATA,SCSI ,SAN DISK.
filesystem architecture such as LVM, RAID
So if this is not understand properly in boot process ,the boot will fail.
Linux guys come up with idea of detecting all this by means of process which is nothing but initrd process .
In this process all the necessary drivers needed to complete the prerequisites to mount root filesystem is done.
Hope you understand.
Last edited by pinga123; 05-07-2012 at 12:16 AM.
|
|
|
05-07-2012, 12:48 AM
|
#3
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
As pinga mentions, the initrd mostly contains drivers that are necessary for the kernel to load the real on-disk root filesystem and pivot to it (the pivot to the real root happens after is the kernel is initialized, but before the init program is started).
The kernel actually doesn't do too much initialization beyong setting up the hardware (as if that isn't enough). Things like launching the GUI and starting services are generally handled by the init program, which is a special user space program with a PID of 1. It parses its configuration file (the details of which vary based on which version of init is in use) and starts services, login prompts (getty), and GUI shells as directed.
|
|
|
05-07-2012, 02:04 AM
|
#4
|
LQ Newbie
Registered: Mar 2012
Posts: 10
Original Poster
Rep: 
|
Thanks for the info
|
|
|
All times are GMT -5. The time now is 01:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|