Post, Mark K wrote:
Sorry to hear you're running a broken OS. :)
Several, it seems:
OpenSUSE 10.0
[EMAIL PROTECTED]:~> ls -l /dev/hda4
brw-r----- 1 root disk 3, 4 2006-05-24 02:17 /dev/hda4
[EMAIL PROTECTED]:~> cat /proc/sys/kernel/real-root-dev
256
[EMAIL PROTECTED]:~>
Debian/Sarge:
[EMAIL PROTECTED] ~]$ ssh gw cat /proc/sys/kernel/real-root-dev /etc/fstab
0
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump>
<pass>
/dev/hda1 / ext3 errors=remount-ro 0 1
I guess it's not a number on which to rely.
Mark Post
-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
John Summerfied
Sent: Wednesday, May 24, 2006 7:46 PM
To: [email protected]
Subject: Re: numerical form of root file system?
Post, Mark K wrote:
It's not an inode value. Inodes are found in file systems, they're
not
device-related. The number you see is the decimal value of a two-byte
hexadecimal number. The hexadecimal number is the major and minor
numbers on the device in /dev. For example, on one of my systems,
/proc/sys/kernel/real-root-dev give me a value of 24065. Converting
that to hex, gives me 5E01. So, device number 94, 01 in /dev is my
real
root device. That just happens to be /dev/dasda1.
[EMAIL PROTECTED] ~]$ ls /dev/hda?
brw-rw---- 1 root 3, 1 Mar 9 04:04 /dev/hda1
brw-rw---- 1 root 3, 2 Mar 9 04:04 /dev/hda2
brw-rw---- 1 root 3, 3 Mar 9 04:04 /dev/hda3
brw-rw---- 1 root 3, 4 Mar 9 04:04 /dev/hda4
brw-rw---- 1 root 3, 5 Mar 9 04:04 /dev/hda5
[EMAIL PROTECTED] ~]$ cat /proc/sys/kernel/real-root-dev
0
[EMAIL PROTECTED] ~]$
/dev/hda is my sole physical drive, hda3 contains my root filesystem.
--
Cheers
John
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390