LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-12-2006, 03:32 AM   #1
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Rep: Reputation: 15
Question Root file system


In kernel code where exactly root file system gets mounted?
 
Old 02-12-2006, 05:26 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
http://lxr.linux.no/source/init/do_mounts.c#L270

This is the function which does it, do_mount_root()

It is called by mount_block_root() or mount_nfs_root() depending on where the root filesystem is located.

These functions are called by mount_root() which should be called from the initrd functions.

.... mount_root() -> mount_block_root() -> do_mount_root()

Depending on what you're interested in finding out, those should be the functions you look at.
 
  


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
root file system pgte3 Linux - Newbie 1 01-08-2006 09:58 PM
root file system and init vishalbutte Programming 2 01-07-2006 12:58 PM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 11:50 AM
Mounting root file system using NFS palanisaravanan Linux - General 5 01-03-2004 06:23 AM
root file system problem (HD?) jjordan Linux - Hardware 3 05-06-2003 08:08 PM


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