Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-12-2006, 02:32 AM   #1
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, 04:26 PM   #2
Senior Member
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48

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.


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

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