All of lore.kernel.org
 help / color / mirror / Atom feed
* How to secure erase PCI-E NVME SSD connected via USB3?
@ 2018-07-29  9:09 Jeff Chua
  2018-07-31 11:07 ` Ming Lei
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Chua @ 2018-07-29  9:09 UTC (permalink / raw)
  To: lkml

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?

Thanks,
Jeff.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to secure erase PCI-E NVME SSD connected via USB3?
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Ming Lei @ 2018-07-31 11:07 UTC (permalink / raw)
  To: Jeff Chua; +Cc: lkml

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.

Thanks,
Ming Lei

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to secure erase PCI-E NVME SSD connected via USB3?
  2018-07-31 11:07 ` Ming Lei
@ 2018-08-01  5:02   ` Jeff Chua
  2018-08-01 14:52     ` Jeff Chua
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Chua @ 2018-08-01  5:02 UTC (permalink / raw)
  To: Ming Lei; +Cc: lkml

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.

Thanks for the pointer.

Jeff.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to secure erase PCI-E NVME SSD connected via USB3?
  2018-08-01  5:02   ` Jeff Chua
@ 2018-08-01 14:52     ` Jeff Chua
  2018-08-02 12:29       ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Chua @ 2018-08-01 14:52 UTC (permalink / raw)
  To: Ming Lei; +Cc: lkml

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to secure erase PCI-E NVME SSD connected via USB3?
  2018-08-01 14:52     ` Jeff Chua
@ 2018-08-02 12:29       ` Alan Cox
  2018-08-02 12:56         ` Jeff Chua
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Cox @ 2018-08-02 12:29 UTC (permalink / raw)
  To: Jeff Chua; +Cc: Ming Lei, lkml

> # 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?

Sounds to me like you need to contact the vendor of the interface in
question. If it accepted a security erase command and didn't do it then
it's broken. It's at liberty to refuse it, or report it doesn't know what
you are talking about, but if it just returned and after re-plugging the
device its still using the old keys then it or the device is busted and
it's not something the OS can do much about.

Alan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to secure erase PCI-E NVME SSD connected via USB3?
  2018-08-02 12:29       ` Alan Cox
@ 2018-08-02 12:56         ` Jeff Chua
  0 siblings, 0 replies; 6+ messages in thread
From: Jeff Chua @ 2018-08-02 12:56 UTC (permalink / raw)
  To: Alan Cox; +Cc: Ming Lei, lkml

On Thu, Aug 2, 2018 at 8:29 PM, Alan Cox <gnomes@lxorguk.ukuu.org.uk> wrote:
>> # 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?
>
> Sounds to me like you need to contact the vendor of the interface in
> question. If it accepted a security erase command and didn't do it then
> it's broken. It's at liberty to refuse it, or report it doesn't know what
> you are talking about, but if it just returned and after re-plugging the
> device its still using the old keys then it or the device is busted and
> it's not something the OS can do much about.

Alan,

You're right. I wrote to JMicron, and they are kind to reply that
"hdparm not support secure-erase feature with USB to NVMe device", and
told me to plug the card into a PCI slot to perform the
security-erase.

I'm asking JMicron again if the JMS583 even support security-erase.

Thanks,
Jeff

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-02 12:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2018-08-02 12:29       ` Alan Cox
2018-08-02 12:56         ` Jeff Chua

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.