Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp950377imm; Wed, 1 Aug 2018 07:53:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfanaG+2Pc4OHPmnOu/oRsO6QyTHpmFIMZFIj1mRgL58cjduEqtUYtaUIwqZ28UyqESaPHx X-Received: by 2002:a62:6cc7:: with SMTP id h190-v6mr27459401pfc.113.1533135224389; Wed, 01 Aug 2018 07:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533135224; cv=none; d=google.com; s=arc-20160816; b=FjqQuf9NzO+tS3CjwKY6bPOhBlxhBU9xrh+83CNDEgkwIa6l4d85Z5qTcfHl9IRzhG 3/nWTt0p1nkOC2jrPPOJNsZWAGsIwK98MhDSwTw2DYq6ZkfjEH6uyTZ52r3OwCt3UPCn uX355mK512TfjmPQwxXbGl0U87HQdetjZqPdYSOcjXdtlWEN7Qucp5SdKvFOcek8KXoL AwuY9auA56L2mrT5PMsxhJCeQ7mmp4QC3TuDnQMkyqQvmMWCBSyPkHbk3yScViTO+QbV hTOQ2WLXpqxYBnD4dFgXm4bMCgv4RqTQtVH2mSJRmKkxtGg4HlL5RRsQTPtOAm6/BFb8 Xdhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ritjFSrfhyyLHDydrfrCpVSfVWEe6wG32VB3u/ugljo=; b=BwLho5cPcZhqRMSSilANZYrtEulewdHaR9FrH4x2IceDM+yRUgjtXX8LeOcnvz3LES FsBIarWXV0mwlh02/PBcSlO/JTRRLLKT5r6JqMmKDYzzoP6MrEIdOlkF7K7RbNsdtZL7 1OByh44T3EO0be9gwDw7K97apoCXmL/glAyyaMAmsN4JWTPEO+Efhfd2ohE4XInHRSbS UdCIUugqefr2feNZnMxNc2tHbFcydY6BHk+wQq4bVdS0Dqnlk+BXY+lixhrcF/M9W7cV jRpBHl68bxpCetJtscxqNQuXLoDblTDElAxYWT3CkMolkTNq9vWcjcqSwQl9lbM3YLdp qEng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kSBsCfE/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23-v6si17213077plj.494.2018.08.01.07.53.29; Wed, 01 Aug 2018 07:53:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kSBsCfE/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389627AbeHAQiG (ORCPT + 99 others); Wed, 1 Aug 2018 12:38:06 -0400 Received: from mail-yb0-f178.google.com ([209.85.213.178]:37185 "EHLO mail-yb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389498AbeHAQiG (ORCPT ); Wed, 1 Aug 2018 12:38:06 -0400 Received: by mail-yb0-f178.google.com with SMTP id r3-v6so7637151ybo.4 for ; Wed, 01 Aug 2018 07:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ritjFSrfhyyLHDydrfrCpVSfVWEe6wG32VB3u/ugljo=; b=kSBsCfE/gxxxIrD08fssJNwc0eDWWymu226KhF9fWKVudMM03lYB6s8C2MYX2F3JRn gYkwFricLVasZPuuMJufxrXcuXmQEVk6zujAlX//FmbyfWMLOELr7IrPdMvWVl7Wi3o2 bj4/xvti8yC2PFflB7MS7Vfw6pVveaZBzFy9hSdS62DMrHQgyU0orNkppkRsnriMtYh0 bMHO8NkE5JOI/cMyzPjE7TmvS5bBxm3CLbD+58mlolD6OYbWfUdndEPNDZHLDehQ7XD/ GchJy9f501B3UsrFjzanZRwToxcoUYs+h9uux/Xr29ZoX7UzKMKDw8+ZofMGgBTeguuq gtgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ritjFSrfhyyLHDydrfrCpVSfVWEe6wG32VB3u/ugljo=; b=BWQUP/v1g/zLoYu+pUgiGjKf8Qm337yA8jD0Tc/b+WLGYnarNLaUHJCUBYGzKY3Hc/ ZbVvdmOR5An2Qxv+VcFPTPZuwhkKR5b3jjVOHwU+rCEjh3kyE/OSRUPF4izESPl/dtBg gbWbSbcmUtoZ0PGp+WUXXH9ObV1GHgyZFaphIqjoA4pVR3gMngpFLNlS1ohKR0/J+rKw l8aSQAlAEcq52Dj5UkYKQPNWnO4//INBSg4AylvsLLfyRk9BkQqWLQpRXH3KaIRrvkbT A2A4ZnI2PqBX/Upi3Qu0qqZmOgQFLetOtC8HoaAL5sA4r5rK0EPCOpTZ5YB3TyoI1D0W HRGA== X-Gm-Message-State: AOUpUlHA6yXE90DXTWSSEqQjEL7nd5y49a+F1kM95Xp0n0o7sOkX8vtU XxWS4ii4dAWbmV8Y9WEORpLEDDGDJFOZhkna7K0= X-Received: by 2002:a25:2d44:: with SMTP id s4-v6mr13825467ybe.284.1533135120664; Wed, 01 Aug 2018 07:52:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a81:3007:0:0:0:0:0 with HTTP; Wed, 1 Aug 2018 07:52:00 -0700 (PDT) In-Reply-To: References: From: Jeff Chua Date: Wed, 1 Aug 2018 22:52:00 +0800 Message-ID: Subject: Re: How to secure erase PCI-E NVME SSD connected via USB3? To: Ming Lei Cc: lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 1, 2018 at 1:02 PM, Jeff Chua wrote: > On Tue, Jul 31, 2018 at 7:07 PM, Ming Lei wrote: >> On Sun, Jul 29, 2018 at 5:09 PM, Jeff Chua 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