From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qkIR-x5JTUwM for ; Tue, 5 Feb 2013 01:49:48 +0100 (CET) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 5 Feb 2013 01:49:47 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U2Wjc-0002AY-0y for dm-crypt@saout.de; Tue, 05 Feb 2013 01:50:04 +0100 Received: from c-98-227-220-190.hsd1.il.comcast.net ([98.227.220.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 01:50:04 +0100 Received: from rnicholsNOSPAM by c-98-227-220-190.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 01:50:04 +0100 From: Robert Nichols Date: Mon, 04 Feb 2013 18:30:30 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: Subject: Re: [dm-crypt] How to find out about mapped device name? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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.