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

Robert Nichols rnicholsNOSPAM at comcast.net
Tue Feb 5 01:30:30 CET 2013


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.



More information about the dm-crypt mailing list