How to Write Zeros to a Hard Drive Effortlessly?

November 11, 2019

Are you in need of wiping data from HDDs or SSDs? You may take the Write Zero method. Learn how to write zeros to a hard drive easily from this page.

What is the Write Zero method?

HDDs and SSDs are frequently used on computers to store data. After long time use, wiping hard drives will be needed because:

There are different methods available to write over hard drives. Write Zero, also known as Single Overwrite, zero fill erase or zero-fill, is one of the most popular methods. The Write Zero data sanitization method replaces your regular, readable data with zeros, thus preventing all software-based file recovery methods from lifting information from the drive. Since the Write Zero method is useful, how to conduct it exactly?

How to write zeros to a hard drive effortlessly?

Here I’m going to show you two efficient solutions to zero fill a hard drive. Learn detailed steps below:

Solution 1: zero fill hard drive via Command Prompt

To write zeros to a hard drive so as to erase all the data, you can format the drive in a special way using the format command from the Command Prompt. Follow the instructions below:

1. Tap the Search button on the taskbar and type “cmd” in the search box. Right click “cmd” and select “Run as administrator”.

2. Type format g: /fs:NTFS /p:1 and press Enter to format the G drive with the NTFS file system and write zeros to every sector of the drive once. You can change the drive letter and file system based on your need.

Tips: A single pass of zeros to a hard drive should prevent all software-based file recovery programs from extracting information from the drive. However, you may use the parameter “p:2” to do two passes just to be safe.

3. Type y and press Enter to confirm erase data.

Format Command

4. Wait until the format process is completed.

Tips: Formatting a drive of any size may take a long time. The lager the drive is, the longer time it will take. Don’t worry if the percent completed doesn’t reach 1 percent for several seconds or even several minutes.

5. After the format, type a name for the drive as volume label, or don’t, and then press Enter.

6. Wait while “Creating file system structures” is displayed on the screen.

7. Once the prompt returns, repeat the above steps for any other partitions on this physical hard drive. You can skip this step if there is only one partition on the hard drive

8. Type exit and press Enter to exit Command Prompt.

Solution 2: write zeros with the free zero fill hard drive utility

As you see, the process of zero-filling a hard drive via Command Prompt is really complicated and time-consuming. Is there a simpler way? The best free zero fill hard drive utility— AOMEI Partition Assistant Standard can save you from the heavy work.

It enables you to delete all partitions and wipe all sectors on the disk within one operation, so you don’t need to repeat the operation for each partition on the disk. Just choose the “Fill sectors with Zero” method, and the disk will be wiped safely and quickly. All Windows PC operating systems like Windows 10/8.1/8/7/Vista/XP are supported. Now follow the guidance below to write zeros to a hard drive via AOMEI Partition Assistant:

Step 1. Get the zero fill hard drive software free download and install it.

Step 2. Launch AOMEI Partition Assistant. Right click the disk on which you want to wipe data and select “Wipe Hard Drive”.

Wipe Hard Drive

Step 3. In the pop-up window, choose the “Fill sectors with Zero” method for wiping data and click “OK”.

Fill Sectors with Zero

Step 4. Click “Apply” to view pending operation and then “Proceed” to commit the operation.



  • Once the wipe operation is executed, the data cannot be recovered by any data recovery software. Please backup files before you do if there are crucial data on the disk.

  • To take the other three wiping methods in Step 3, you need to upgrade to AOMEI Partition Assistant Professional.


When you want to write zeros to a hard drive for wiping data, you can refer to the two solutions mentioned above. Compared to the format command, AOMEI Partition Assistant saves much efforts and time for you. Other than zero-filling a hard drive, you can also change partition type ID and remove write protection on micro SD card Samsung with AOMEI Partition Assistant. Why not give it a try right now?