How to Format Hard Drive using CMD or Command Prompt

facebook twitter linkedin

It is crucial to format the hard drive before using. Irrespective of the operating system, there are several ways through which one can perform the formatting action. Among them, the easiest and most effective way is to use the Command prompt to format disk or format hard drive using CMD. However, every operating system has a different approach to manage the hard drive, and only a formatted disk structure is recognizable. After formatting, one can install OS and create new partitions to store data.

Part #1: Step-by-step Guide for How to Format Hard Drive using CMD

Part #2: How to Recover Files after CMD to Format Hard Drive

Part #1: Step-by-step Guide for How to Format Hard Drive using CMD

The following is the procedure that helps anyone obtain the right answer to how to format hard drive using cmd. It is advisable to follow the steps carefully to avoid mistakes.

1. Type "cmd" in the search box, which is at the bottom left corner of the screen. The list will display Command Prompt as the matching application. Select the same, right click on it, and click on "Run as administrator".

how to format hard drive using cmd

2. Once the Command Prompt window opens, input "diskpart" and press enter.

cmd format hard drive

3. Input "list disk" and press enter. The command will display all the disk drives along with the partitions and external disk drives connected to the system.

command prompt to format hard drive

4. Each of the drives has a particular disk number. Input "Select disk" with disk number. For example, "select disk 0." The input is conveying the message to the system to select disk 0 and format the same.

 how to format hard drive using command prompt

5. Now, input "clean" in the command box. The step will help the computer to clean all the files and folder present on the disk.

6. Input "create partition primary" in the command box and press enter.

7. Once the diskpart command successfully creates the needed partition, input "format fs=ntfs or format fs=exfat" and hit the enter key. The command is telling the diskpart to format the new drive with either NTFS or exFAT file system.

8. Input "assign" and choose a drive letter to assign the same to the newly created partition or hard drive.

The above steps are simple and help anybody to format hard drive using CMD. However, the downside to the procedure is that it will erase complete data present on the hard drive or the selected partition on the hard drive.

Part #2: How to Recover Files after CMD to Format Hard Drive

The Command prompt to format hard drive is a simple process. But, recovering the data from the formatted hard drive requires the use of CMD format hard drive recovery software. At this point, the best tool to perform this action is iBeesoft Data Recovery. It possesses the great capability to restore the data even after people used command prompt to erase hard drive data.

iBeesoft Data Recovery software is a reliable program that helps in retrieving lost, corrupted, or data from formatted hard drives, flash drives and much more in a few simple steps. The software uses a robust algorithm that scans the selected drive and displays the recoverable files and folders. User can then proceed by choosing the records they wish to recover. The best element of the software is its strength to scan irrespective of the scenario under which there was a loss of data. Furthermore, it provides assistance to scan any hard disk and external hard drives and flash drives.

Your Safe & Effective Hard Drive Recovery Tool

erase hard drive command prompt
  • It provides two scan modes can easily and completely recover formatted HDD data on Windows PC or Mac.
  • Recovery of hard drive data lost due to formatted, deleted/lost partitions, displaying the file system as RAW, virus attack, reinstallation of operating system and other unknown reasons.
  • The hard drive recovery software can also recovery of deleted files where the user moved the files to Recycle Bin and clear it, used "Shift+Delete" key, or just used the Delete button.

Security Verified, 3,655,358 people have downloaded it

command prompt to erase hard drive

Guide to Recover Formatted Files from Hard Drive using iBeesoft Data Recovery

Even after completing format hard drive from command prompt Windows 7, Windows 8, Windows 10 and Windows XP action, with the assistance of format recovery program, it is possible to get back the lost data in a few simple steps.

Step 1: The first step involves downloading and installing the software. One can visit the official website of the program and download the application. Upon clicking the execution file, one will complete the installation of the program.

Step 2: After completion, the program creates a shortcut on the desktop. Clicking the icon will launch the program. The primary window shows all the file formats that the software is capable of recovering. Users can pick multiple file formats from the window such as documents, videos, audio, and other files and hit the "Start" button to recover data from hard drive on Mac or Windows.

format hard drive from command prompt windows 7

Step 3: iBeesoft shows all the partitions of the hard drive including any external storage devices connected to the system. Users have to pick the location to allow the application to perform the scan and complete the action of recovering the data. Press the "Scan" button from the same screen to begin the scanning process. The time to complete the process depends on the amount of the data in the selected partition.

how to format hard drive from command prompt

Step 4: After completion of the scan, the application will display them in a new window. The window consists of three columns – the left that shows the directory in tree formation, the center that shows the recoverable files, and the right that shows the thumbnails of the selected files. Users can pick the needed files from the center of the window or click an entire folder from the left side where the application places files according to their file system – pictures, videos, audio, documents, and so on. After completion of the selected files or folder, press the "Recover" button. The program will ask for a location on the system to begin the recovery process. Ensure to choose a different drive/location other than the formatted partition.

format hard drive from cmd

Note: Deep scan is available, which allows the program to perform a deep scan and search for additional files.

Related Articles

Our Client

Our Client