LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-27-2013, 09:17 AM   #1
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Rep: Reputation: 0
Question wipe -q ETA 12w 2d ?!? Why so long?


I've a 1.5 WD Green HD that failed SMART tests, has 21 or so bad sectors and is basically about to die.
I've reformatted it using GPARTED but wanted to wipe it before getting rid of it.
It's hooked up via a USB2 ext HD case... but even on a SATA connection, it was labouriously slow.

So I've typed
sudo wipe -q /dev/sdg1
answered YES
and the drive is being wiped... but it's going to take over 12 weeks!

Is there a faster way to do this -- I'm even using the -q option for a quick wipe!
 
Old 04-27-2013, 09:34 AM   #2
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
When a drive is failing with SMART, wiping is usually an "indefinite" process.

Instead of wiping, which is unnecessary on modern disks, zero it out:
Code:
dd if=/dev/zero of=/dev/whatever
then do the same with urandom (there is a faster alternative to urandom here: frandom)
Code:
dd if=/dev/urandom of=/dev/whatever
Then destroy the disk physically. Wiping it (like 38 over-writes or something) is NOT necessary on modern disks. But if you insist, shred is probably faster than wipe (unless it's the same:P).
 
1 members found this post helpful.
Old 04-27-2013, 10:13 AM   #3
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks... trying the dd command now....
frandom looks faster but installing things into the kernel is somewhat above me...
Will stick with the urandom even though its longer.
Thanks.
 
Old 04-27-2013, 10:17 AM   #4
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
Anyway, the reason why it's so slow is that the drive is failing.
dd may not be faster, if so try dd_rescue, which ignores block errors and just continues.
 
Old 04-27-2013, 03:20 PM   #5
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Original Poster
Rep: Reputation: 0
Giving dd_rescue a try with
sudo dd_rescue -v -A -z -M /dev/sdg1
Don't know if I should have added a RandSeed interger after the -z.
But after this, I think I'll try taking my torex screwdrivers to it and see what it looks like inside.
 
Old 04-27-2013, 07:16 PM   #6
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
See also Secure Erase:
Quote:
Secure Erase* is an erasure command feature embedded into virtually all ATA drives manufactured since 2001.
...
Secure Erase ... uses internal commands embedded in the HDD by the manufacturer. This allows it to process at the speed of the drive, rather than the clock speed of the PC. Secure Erase is virtually always faster than software clears, in many cases significantly faster.
Secure Erase with hdparm: https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase
 
Old 04-27-2013, 07:28 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Moved: This thread is more suitable in the Linux Software forum (not a security issue) and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
erase, quick, wipe



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
Copying/Moving Files From Commandline With ETA redbot Linux - General 1 03-17-2013 05:00 PM
ETA Slack 13.2 clifford227 Slackware 65 12-08-2010 03:11 AM
ETA for Firefox 2.x for RHEL5 mike-g2 Red Hat 5 10-23-2007 06:00 AM
kde 3.5 eta? Kamikazee Debian 11 12-19-2005 05:58 AM
ETA on official Gnome 2.6 packages? Flecko Slackware 2 04-27-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:51 PM.

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