Connect with us


NEWS

How To Use The Format Command to Write Zeros to a Hard Drive

Published

on

A simple way to write zeros to a hard drive is to format the drive in a special way using the format command from the Command Prompt.

The format command gained write-zero abilities beginning in Windows Vista so if you have an older operating system, you won’t be able to use the format command as data destruction software.

Note: A System Repair Disc can be created from any working Windows 7 computer and can then be used to write zeros to any drive using the included format command, including the primary drive, no matter what Windows operating system is on the computer.

A System Repair Disc does not install Windows 7 and you will not need a product key to use a System Repair Disc.

Follow these steps to write zeros to a hard drive using the format command:

Difficulty: Easy

Time Required: It could take several minutes to several hours to write zeros to a hard drive via the format command

Here’s How

  1. Since you can write zeros to a hard drive with the format command both from within Windows 7 and Windows Vista and from outside the operating system, I’ve created two ways to proceed through these instructions:
    • Start at Step 2 if you need to write zeros to the primary drive, usually C, of any Windows operating system OR if you want to write zeros to any drive on a computer with Windows XP or earlier.
    • Start at Step 7 if you need to write zeros to a drive other than the primary drive in Windows Vista or later. You’ll need to have an elevated Command Prompt window open and ready.
2. Create a System Repair Disc in Windows 7.
As I mentioned earlier, you’ll need access to a Windows 7 computer to create a System Repair Disc. However, it doesn’t need to be your Windows 7 computer. If you don’t have a Windows 7 PC then find a friend that does and create a System Repair Disc from his or her computer.
  1. If you don’t already have or can’t find a way to create a System Repair Disc then you won’t be able to write zeros to a drive in this way.

    Note: If you have a Windows Vista or Windows 7 Setup DVD, you can boot to it in lieu of creating a System Repair Disc. The directions from this point forward using a setup disc will be generally the same.

  1. Boot from the System Repair Disc.

    Watch for the Press any key to boot from CD or DVD… message after your computer turns on and be sure to do that. If you don’t see this message but instead see the Windows is loading files… message, that’s fine.

  2. Wait for the Windows is loading files… screen. When it’s over, you should see a System Recovery Options box.

    Change any language or keyboard input methods you need to and then click Next >.

    Important: Don’t worry about the “loading files” message… nothing is being installed anywhere on your computer. System Recovery Options is just starting, which is needed to get to the Command Prompt and ultimately to write zeros to your hard drive.

  3. A little dialog box appears next that says “Searching for Windows installations…”.

    After several seconds, it will disappear and you’ll be taken to a System Recovery Options window with two options.

    Choose Use recovery tools that can help fix problems starting Windows. Select an operating system to repair. and then click Next >.

    Note: Your operating system may or may not be listed. If you’re using another operating system like Windows XP or Linux, nothing will show up here – and that’s OK. You do not need a compatible operating system on this computer to write zeros over the data on the hard drive.

  1. Click on Command Prompt from the System Recovery Options screen.

    Note: This is a fully functional version of the Command Prompt and contains most of the commands you’d expect to be available from the Command Prompt in an installed version of Windows 7. This, of course, includes the format command.

  2. At the prompt, type the following, followed by Enter:
    format e: /fs:NTFS /p:2
    

    The format command used in this way will format the E drive with the NTFS file system and write zeros to every sector of the drive twice. If you are formatting a different drive, change e to whatever drive letter you need.

    Important: A single pass of zeros to a hard drive should prevent all software based file recovery programs from extracting information from the drive, which the format command in Windows 7 and Vista does by default. However, I like to do two passes via this method just to be safe. Even better, if you’d like to protect yourself from more invasive ways of recovering data, choose a true data destruction program with more advanced options.

  3. Enter the volume label of the drive you’re formatting when asked and then press Enter. The volume label is not case sensitive.
    Enter current volume label for drive E:

    If you don’t know the volume label, cancel the format using Ctrl+C and then look up How To Find the Volume Label of a Drive From the Command Prompt.

    Note: If the drive you’re formatting doesn’t have a label then, logically, you won’t be asked to enter it. So if you don’t see this message it just means that the drive you’re formatting doesn’t have a name, which is fine. Just move on to Step 9.

  4. Type Y and then press Enter when prompted with the following warning:
    WARNING, ALL DATA ON NON-REMOVABLE DISK
    DRIVE E: WILL BE LOST!
    Proceed with Format (Y/N)?

    Warning: You can not undo a format! Be very sure that you want to format and permanently erase this drive! If you’re formatting your primary drive, you will remove your operating system and your computer will not work again until you install a new one.

  5. Wait while the format completes.

    Note: Formatting a drive of any size may take a long time. Formatting a large drive may take a very long time. Formatting a large drive with multiple write-zero passes may take a very, very long time.

    If the drive you’re formatting happens to be very large and/or you’ve chosen to make several write-zero passes, don’t worry if the percent completed doesn’t even reach 1 percent for several seconds or even several minutes.

  6. After the format, you’ll be prompted to enter a Volume label.

    Type a name for the drive, or don’t, and then press Enter.

  7. Wait while Creating file system structures is displayed on the screen.
  8. Once the prompt returns, repeat the above steps on any other partitions on this physical hard drive.

    You can’t consider the data on an entire physical hard disk destroyed unless you actually format all the drives on the disk using this method.

  9. You can now remove the System Repair Disc and turn off your computer.

    If you’ve used the format command from within Windows, just close the Command Prompt.

  10. That’s it – you just used the format command as a basic data destruction utility! There is no longer any information to be found on your hard drive by a file recovery program.

    Important: If you try to boot to a drive that you’ve erased all the information from, it will not work because there’s no longer anything there to load. What you’ll get instead is a “BOOTMGR is missing” or an “NTLDR is missing” error message, meaning there was no operating system found.

Culled from: Lifewire.com

Nigeria’s top youth newspaper - actively working to deliver credible news, entertainment, and empowerment to 50 million young Africans daily.

Advertisement
24 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Trending