From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 23 Jun 2017 17:36:29 +0200 (CEST) Date: Fri, 23 Jun 2017 16:36:24 +0100 From: "Daniel P. Berrange" Message-ID: <20170623153624.GB32545@redhat.com> Reply-To: "Daniel P. Berrange" References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Reading the serial number of an HDD encrypted with dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rehan Iftikhar Cc: dm-crypt@saout.de On Fri, Jun 23, 2017 at 07:01:28AM -0700, Rehan Iftikhar wrote: > Hello > > if I plug in an HDD that is encrypted with dm-crypt should I be able to use > tools like lsblk or udevadm to get the HDD's manufacturers serial number > *before* I decrypt the device? Yes, you can easily get the hardware serial number. LUKS only protects the disk sectors - the serial number is accessed via SCSI commands and so not affected by disk sector encryption. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|