Monday, 8 January 2018

Format hard disk threw command line in Windows


Open a Command Prompt window. To open the Command Prompt on a Windows Vista or Windows 7 machine click on Start and type cmd in the search bar. Then right click on cmd.exe and run as administrator. It will prompt you with the message, "Do you want to allow the following program to make changes to this computer," click yes. A black Command Prompt window will open.




This is the Command Prompt window.




From the command prompt, type diskpart and press Enter.









The diskpart prompt will open.

 
From the diskpart prompt, type list disk and press Enter.



A list of disks will appear in a text format. You will return to the diskpart prompt. Step one verified that Disk 1 is the 3TB drive. Warning: Diskpart Erase/Clean will permanently erase/destroy all data on the selected drive. Please be certain that you are erasing the correct disk. 


 
From the diskpart prompt you will need to select a disk disk number (for instance, if the 3TB+ drive is Disk 1, you would type select disk 1) and press EnterWarning: Diskpart Erase/Clean will permanently erase/destroy all data on the selected drive. Please be certain that you are erasing the correct disk. 




A message appears saying that the disk is selected. You will return to the diskpart prompt. Warning: Diskpart Erase/Clean will permanently erase/destroy all data on the selected drive. Please be certain that you are erasing the correct disk. 


 
From the diskpart prompt, type clean and press Enter. The drive's partition, data, and signature is now removed. You will return to the diskpart prompt. Warning: Once you type clean and hit enter the drive will be erased. No warning will be provided. 


 
The Command Prompt window will display the message "DiskPart succeeded in cleaning the disk".  Close out of the Command Prompt window by clicking the red X in the upper right hand corner.






Now the 3TB+ drive can be re-initialized, partitioned, and formatted.

No comments:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...