From: Milan Broz <gmazyland@gmail.com>
To: dm-crypt <dm-crypt@saout.de>
Subject: Re: [dm-crypt] How to find out about mapped device name?
Date: Tue, 05 Feb 2013 03:24:05 +0100 [thread overview]
Message-ID: <51106D45.9020307@gmail.com> (raw)
In-Reply-To: <kepjr4$jtm$1@ger.gmane.org>
On 02/05/2013 01:30 AM, Robert Nichols wrote:
> 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.
try lsblk (no root required, just it need updated util-linux with this util).
Milan
next prev parent reply other threads:[~2013-02-05 2:24 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
2013-02-05 2:24 ` Milan Broz [this message]
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=51106D45.9020307@gmail.com \
--to=gmazyland@gmail.com \
--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.