Welcome to MSDN Blogs Sign in | Join | Help

News

  • Disclaimer: All postings are provided "AS IS" with no warranties, and confer no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Microsoft. Because a weblog is intended to provide a semi-permanent point-in-time snapshot, you should not consider out of date posts to reflect current thoughts and opinions.
Sterilizing a hard drive with diskpart.exe

Sometimes you need to ensure that a hard drive is completely sterilized (erased) and that all data is actually removed.

So to securely wipe (zero-out) a drive, boot the system with a WinPE boot CD/Flash or boot floppy (Windows 98) that has a copy of the diskpart.exe utility on it.

Run the following commands in an elevated command prompt (assuming that the drive to be wiped, in this case, is disk 0.

DISKPART
Select disk 0
clean all
exit

Note: The time that passes between steps 3 and 4 is dependent on many factors including the hardware of the system, drive speed, and your patience level.  Eventually it will return to the diskpart prompt and you can exit out.

Running a MD5 hash against the drive and getting a 0 checksum will confirm that the drive has been wiped.

Dave Bowman

Posted: Wednesday, June 24, 2009 11:21 AM by epsoemse

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker