public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Linda Walsh <lkml@tlinx.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: new mount is broken w/regard to devnames in /etc/fstab
Date: Mon, 20 May 2013 14:39:18 -0500	[thread overview]
Message-ID: <1369078758.2776.2@driftwood> (raw)
In-Reply-To: <51985C9E.3020106@tlinx.org> (from lkml@tlinx.org on Sun May 19 00:01:18 2013)

On 05/19/2013 12:01:18 AM, Linda Walsh wrote:
> 1) How is one supposed to get the real root device?
> It's not /dev/root -- and on my system /dev/root doesn't even exist.

There was a thread on this a couple months ago:
   https://lkml.org/lkml/2013/3/20/315

You can get the major/minor of a filesystem with the stat() system  
call, or even the stat command line utility. That gives you the  
major/minor of the device the filesystem was mounted from.

Note that there's only a major/minor when the filesystem _has_ a  
backing block device. If it's initramfs or tmpfs: there isn't one. If  
it's nfs, smbfs, or v9fs: there isn't one.

Rob

  reply	other threads:[~2013-05-20 19:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19  5:01 new mount is broken w/regard to devnames in /etc/fstab Linda Walsh
2013-05-20 19:39 ` Rob Landley [this message]
2013-05-20 20:52   ` Linda Walsh
2013-05-22  0:39     ` Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369078758.2776.2@driftwood \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@tlinx.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox