From: Jeff Chua <jeff.chua.linux@gmail.com>
To: Ming Lei <tom.leiming@gmail.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: How to secure erase PCI-E NVME SSD connected via USB3?
Date: Wed, 1 Aug 2018 22:52:00 +0800 [thread overview]
Message-ID: <CAAJw_Zvaw8yoyejg5T6CtRFjoS4i_EBYKRVWocpH+mpwfaVC1Q@mail.gmail.com> (raw)
In-Reply-To: <CAAJw_ZtZ8hXi_B6+duiQYpaeSsQ7BQD-KwtE3H6K8Y8O8pAuig@mail.gmail.com>
On Wed, Aug 1, 2018 at 1:02 PM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
> On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei <tom.leiming@gmail.com> wrote:
>> On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua <jeff.chua.linux@gmail.com> wrote:
>>> I'm testing the USB3-to-PCI-E NVME SSD. It's works using uas module,
>>> recognized it as /dev/sda.
>>>
>>> Since it's an USB device, the nvme-cli tools won't work, nor does
>>> hdparm, as it's a NVME SSD.
>>>
>>> So, how to secure-erase the NVME SSD connected via the JMS583 chip?
>>
>> You may try 'blkdiscard --secure' and see if you are luck.
>
> Interesting, will try that.
# blkdiscard --secure /dev/sda
blkdiscard: /dev/sda: BLKSECDISCARD ioctl failed: Operation not supported
# hdparm --user-master u --security-erase p /dev/sda
(returns immediately and does nothing).
I've tried hdparm on an SSD connected via USB3 and it secure-erased ok.
Anyone working on this?
Thanks,
Jeff
next prev parent reply other threads:[~2018-08-01 14:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-29 9:09 How to secure erase PCI-E NVME SSD connected via USB3? Jeff Chua
2018-07-31 11:07 ` Ming Lei
2018-08-01 5:02 ` Jeff Chua
2018-08-01 14:52 ` Jeff Chua [this message]
2018-08-02 12:29 ` Alan Cox
2018-08-02 12:56 ` Jeff Chua
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=CAAJw_Zvaw8yoyejg5T6CtRFjoS4i_EBYKRVWocpH+mpwfaVC1Q@mail.gmail.com \
--to=jeff.chua.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tom.leiming@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;
as well as URLs for NNTP newsgroup(s).