All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] How to find out about mapped device name?
Date: Mon, 04 Feb 2013 18:30:30 -0600	[thread overview]
Message-ID: <kepjr4$jtm$1@ger.gmane.org> (raw)
In-Reply-To: <CAADET=fQxTNEBFz4wfF-OKgsxHz46W=hEOLG9ojd4i3Smvgwbw@mail.gmail.com>

On 02/04/2013 05:32 PM, David Li wrote:
> Hi Experts,
>
> I have already called luksFormat on a raw block dev and luksOpen to set up
> mapped device in /dev/mapper. Is there a command to find out about the mapping
> between the raw dev and mapped dev?

"dmsetup deps [name]" will give you the lists of (major, minor) device numbers
underlying the names in /dev/mapper. Include the "name" argument (without the
leading "/dev/mapper/") to get the device number(s) for a single name.

Root privileges are required.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

  parent reply	other threads:[~2013-02-05  0:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-04 23:32 [dm-crypt] How to find out about mapped device name? David Li
2013-02-04 23:50 ` .. ink ..
2013-02-04 23:57   ` David Li
2013-02-05  0:08     ` .. ink ..
2013-02-05  0:30 ` Robert Nichols [this message]
2013-02-05  2:24   ` Milan Broz
2013-02-05 17:57     ` David Li
2013-02-05  0:42 ` Arno Wagner

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='kepjr4$jtm$1@ger.gmane.org' \
    --to=rnicholsnospam@comcast.net \
    --cc=dm-crypt@saout.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.