[dm-crypt] How to find out about mapped device name?

David Li w.david.li at gmail.com
Tue Feb 5 18:57:57 CET 2013


Thanks all for the help!
It turns out lsblk mostly fits my requirement. It can also show the
filesystem mounted on the device which is nice.




On Mon, Feb 4, 2013 at 6:24 PM, Milan Broz <gmazyland at gmail.com> wrote:

> 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
> _______________________________________________
> dm-crypt mailing list
> dm-crypt at saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20130205/45de3b99/attachment.html>


More information about the dm-crypt mailing list