Clean command in Windows
Clean command syntax
clean [all]
command parameter clean
ParameterDescriptionall Specifies that each and every sector on the drive is set to 0, this will completely erase all data present on the drive.
Note:
- On MBR (Master Boot Record) drives, only the MBR partition information and hidden sector information are overwritten.
- On a GPT (GUID Partition Table) volume, the gpt partition information, including the Protective MBR, is overwritten. No hidden sector information.
- A drive must be selected for this to be successful. Use the select disk command to select a drive and switch to it.
Example of how to erase the drive with the clean command via Command Prompt
1. To determine the drive number assigned to a 3TB+ MBR partitioned volume, follow the steps below.
- From the Start menu , right-clicking on Computer will provide a drop-down menu. (If you are using Windows 8 or 8.1, move your mouse to the bottom left corner of the desktop and right-click. Then select Disk Management ).
- Select Manage.
- Select Disk Management (listed under Storage ).
- Find the drive identified as a 3TB (2794GB) drive. The properties window shows that the partition table on the drive is MBR.
Important : Note the drive number (such as Disk 1 ).
2. Open a Command Prompt window with admin rights.
3. From Command Prompt, type diskpart and press Enter. The diskpart command prompt will open.
4. From the diskpart command prompt, type list disk and press Enter.
5. From the diskpart command prompt, you'll need to select the drive number (for example, if the 3TB+ drive is Disk 1 , you'd type select disk 1 ) and press Enter. A message appears indicating that the drive has been selected. You'll be back at the diskpart command prompt.
6. From the diskpart command prompt, type clean and press Enter. The drive's partition, data, and signature are now deleted. You'll be back at the diskpart command prompt.
Warning : After you type clean and press Enter , the drive will be erased, no warning is provided so be careful to select the correct drive you want to erase.
7. The Command Prompt window will display the message "DiskPart succeeded in cleaning the disk" . Close the Command Prompt window by clicking the red X in the upper right corner.
8. 3TB+ drives can now be re-initialized, partitioned and formatted.
You should read it
May be interested
- 8 things to remember before performing a clean install of Windowsa clean install of windows is like solving many problems with one solution. if your pc has been infected with malware, viruses, or other threats, a clean install of windows will most likely be the last resort to get things back on track.
- How to use the option equivalent to the 'ls' command in Windowsthe 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
- The command reg add in Windowsthe reg add command adds new subkeys or entries to the registry.
- Rem command in Windowsthe rem command helps write comments (comments) in a batch file or config.sys.
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- 7 simple steps to make your laptop as clean as newhere are 7 basic steps you need to take when cleaning your laptop. you should check the manufacturer's user manual for more details on how to disassemble specific parts on a laptop.
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- How to clean up Windows 10 according to the timetablewith older versions of windows 10, to clean the system according to the timetable we can rely on the settings available on the computer.