[dm-crypt] Reading the serial number of an HDD encrypted with dm-crypt

Daniel P. Berrange berrange at redhat.com
Fri Jun 23 17:36:24 CEST 2017


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 :|


More information about the dm-crypt mailing list