LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-07-2012, 12:37 AM   #1
embeddedlinux
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
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
 
Old 05-07-2012, 01:09 AM   #2
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
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 01:16 AM.
 
Old 05-07-2012, 01:48 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 05-07-2012, 03:04 AM   #4
embeddedlinux
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for the info
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel and root file system embeddedlinux Linux - Software 2 05-03-2012 01:50 AM
How to make initrd that contains root file system? Caldus Linux - Software 5 05-19-2010 11:33 PM
Upgraded Kernel, Kernel Panic, Can't read root file system. Romanus81 Slackware 25 05-04-2008 11:45 PM
Kernel 2.6.22.5: waiting for root file system drpixel404 Linux - General 12 09-19-2007 11:31 AM
root file system on NFS... kernel vs. userland GUIPenguin Linux - General 0 03-22-2006 02:52 PM


All times are GMT -5. The time now is 03:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration