How to Erase My Entire Hard Drive with Command Prompt

Save

Microsoft Windows features a powerful command line utility called "diskpart" that is capable of many different functions for hard drives. Some of the included functions include partitioning, formatting, clearing and assigning different areas of the hard drive in a computer. Operations done with "diskpart" can be either destructive or non-destructive. You can erase your entire hard drive with the command prompt by booting from the Windows installation disc and running the "diskpart" utility.

  • Boot the computer from the Windows installation disc.

  • Click "Next" at the first prompt.

  • Click "Repair your computer."

  • Click "Next."

  • Click "Command Prompt."

  • Type "diskpart" without quotes, then press "Enter."

  • Type "list disk" without quotes, then press "Enter."

  • Type "select disk 0" without quotes and replacing "0" with the actual number of the drive you wish to erase.

  • Type "clean" without quotes, then press "Enter." The disk is now completely erased.

  • Restart the computer.

Tips & Warnings

  • You can run diskpart from an installed Windows system without booting from the install disc, but you cannot erase the primary hard drive running Windows unless you boot from the disc. The diskpart utility is accessed from the command prompt utility under "Accessories."
  • Be sure to back up any important data before using the diskpart command.
Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!