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 LnmbILzgc487 for ; Tue, 5 Feb 2013 03:24:10 +0100 (CET) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 5 Feb 2013 03:24:10 +0100 (CET) Received: by mail-wi0-f179.google.com with SMTP id ez12so3705989wid.6 for ; Mon, 04 Feb 2013 18:24:10 -0800 (PST) Message-ID: <51106D45.9020307@gmail.com> Date: Tue, 05 Feb 2013 03:24:05 +0100 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 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