LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 04:26 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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