From: Mark Lord <kernel@start.ca>
To: Peter Wu <peter@lekensteyn.nl>,
linux-ide@vger.kernel.org, util-linux@vger.kernel.org
Subject: Re: blkdiscard vs hdparm for erasing a SSD?
Date: Mon, 27 Oct 2014 22:09:11 -0400 [thread overview]
Message-ID: <544EFAC7.80501@start.ca> (raw)
In-Reply-To: <2523736.cvg5kvG8qa@al>
On 14-10-15 09:12 AM, Peter Wu wrote:
> Hi,
>
> Recent versions of util-linux have a blkdiscard program. How does this compare
> to the --security-erase option of hdparm? The goal is to erase the contents of
> an previously used SSD to improve performance.
>
> Is the command `blkdiscard -s /dev/sdd` equivalent to the instructions listed on
> https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase?
--security-erase is the nearest thing to a "low level format" that exists.
On some mechanical drives, it actually performs a true low level format.
For SSDs, most manufacturers that I have dealt with use --security-erase
as their preferred method for reinitializing a corrupted drive.
--security-erase is normally much faster than TRIM as well.
Cheers
prev parent reply other threads:[~2014-10-28 2:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 13:12 blkdiscard vs hdparm for erasing a SSD? Peter Wu
2014-10-15 14:21 ` Tim Small
[not found] ` <543E82DE.8070405-v0yPK6tSSg/10XsdtD+oqA@public.gmane.org>
2014-10-16 10:17 ` Peter Wu
2014-10-21 17:06 ` One Thousand Gnomes
2014-10-28 2:09 ` Mark Lord [this message]
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=544EFAC7.80501@start.ca \
--to=kernel@start.ca \
--cc=linux-ide@vger.kernel.org \
--cc=peter@lekensteyn.nl \
--cc=util-linux@vger.kernel.org \
/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).