From: "Daniel P. Berrange" <berrange@redhat.com>
To: Rehan Iftikhar <rehan.iftikhar@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Reading the serial number of an HDD encrypted with dm-crypt
Date: Fri, 23 Jun 2017 16:36:24 +0100 [thread overview]
Message-ID: <20170623153624.GB32545@redhat.com> (raw)
In-Reply-To: <CAJsxe3P87Pt4ghyjnR+e42e+dgPVKshVQ-r7oV+cqyk5RfmOQg@mail.gmail.com>
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 :|
next prev parent reply other threads:[~2017-06-23 15:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-23 14:01 [dm-crypt] Reading the serial number of an HDD encrypted with dm-crypt Rehan Iftikhar
2017-06-23 15:36 ` Daniel P. Berrange [this message]
2017-06-23 15:58 ` Michael Kjörling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170623153624.GB32545@redhat.com \
--to=berrange@redhat.com \
--cc=dm-crypt@saout.de \
--cc=rehan.iftikhar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox