LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-14-2008, 02:54 PM   #1
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
What is /proc/sys/kernel/real-root-device


The 'proc' documentation in the kernel source doesn't mention this item. On my own box it's set to 0, and everything works OK.

However, I've seen an init script for use for an initramfs boot that contains the line "echo 0x0010 > /proc/sys/kernel/real-root-device" just before a "switch_root" command is issued.

Can anyone help me with the significance of that proc item?

HaroldWho
 
Old 10-15-2008, 07:48 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,923

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Try "man proc"
 
Old 10-15-2008, 01:58 PM   #3
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Original Poster
Rep: Reputation: 23
Re: /proc/cyc/kernel/real-root-device

Well, that's *half* the story. BTW, I'd never have tried 'man proc' without your suggestion.

Now, here's my next question:

'man proc' tells me that:

If /proc is mounted, the "real" root device can be changed from within linuxrc by writing the number of the new root FS device to the special
file /proc/sys/kernel/real-root-dev, e.g.
# echo 0x301 >/proc/sys/kernel/real-root-dev

What the heck do they mean by "the number" of the new root FS?

HW
 
  


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
What is kernel 2.4 equivalent of /proc/sys/vm/freepages entries [ found in 2.2.x ] ukursat Linux - Kernel 3 08-06-2007 09:26 AM
missing file??? /proc/sys/kernel/sysrq bad_gui Linux - General 4 08-18-2006 10:37 PM
echo '214748364' > /proc/sys/kernel/shmmax rubendarioportillo SUSE / openSUSE 1 11-03-2005 06:05 PM
echo '214748364' > /proc/sys/kernel/shmmax SwannAnderson Linux - General 2 11-03-2005 02:54 PM
/proc/sys/kernel/hostname quesiton caps_phisto Linux - General 1 12-14-2004 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:38 AM.

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