LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-08-2021, 01:31 AM   #1
anctop
Member
 
Registered: Feb 2010
Posts: 101

Rep: Reputation: Disabled
zeroing SSD with dd


Hi,

I tried to wipe a WD Green 240GB SATA SSD.
As WD does not provide "official" diagnostic tool for the product, I plugged the drive in a Linux system and executed the command:
Code:
dd if=/dev/zero of=/dev/sdX
However the process died with the error "Input/output error" after writing a random amount (varied from 400MB to 900MB) of zeros to the drive.

It seems to be a hardware issue, but testing the drive with "smartctl" reports no error.

What other tests can be conducted in order to arrive at a convincing conclusion about the usability of the drive ?
 
Old 07-08-2021, 01:41 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,214

Rep: Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949Reputation: 7949
you can try another OS, another host to check if that works.
 
Old 07-08-2021, 02:10 AM   #3
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
There's tons of 'FUD' about SSD ('heavy' writing), as web-searches like this finds:

erase|zero* SSD with dd "Input/output error" (& I added flush)

I liked this one, but I don't trust any for certainty.
https://rabexc.org/posts/recovering-from-failed-ssd

I liked conv=fdatasync (& fstrim, but IDK)

Without a big bs= , doesn't it run extremely slow?

Let us know what you discover (as you try things),
and hopefully the (detailed&explained) solution. Best wishes.

Last edited by GentleThotSeaMonkey; 07-08-2021 at 02:19 AM.
 
Old 07-08-2021, 03:12 AM   #4
anctop
Member
 
Registered: Feb 2010
Posts: 101

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you can try another OS, another host to check if that works.
Thanks for the suggestion.

I moved the drive to another machine, it can be zeroed without error.
It is then moved back to the original system and repeat the "dd" command, the reported failure vanishes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nonzero characters in hex dump after zeroing drive mazinoz Linux - Server 4 04-06-2010 01:47 AM
Zeroing harddrive bunjusnus Linux - Newbie 4 03-16-2009 11:59 AM
hard disk zeroing rockarolla Linux - Software 4 08-25-2008 12:29 AM
Zeroing out ununsed space in a ext3 partition saravkrish Linux - General 2 11-19-2004 03:10 PM
Zeroing free space? RyanBarnard Linux - Software 2 09-23-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration