Clean Disk using Diskpart Clean Command in Windows 10: Almost all of us have gone through SD card or external storage device not working when connected to PC because of data corruption or any other issue and even formatting the device doesn’t seem to fix the issue. Well, if you are facing a similar issue then you could always use DiskPart tool to format your device and it might start working again. For this to work there should not be any physical or hardware damage to the device and also the device must be recognized in Command Prompt even though if it’s not recognized by Windows.
Well, DiskPart is a command-line utility that comes inbuilt in Windows and it allows you to manage storage devices, partitions, and volumes by using direct input at the Command Prompt. There are many features of DiskPart like Diskpart can be used to convert a basic disk to a dynamic disk, convert dynamic disk to a basic disk, clean or delete any partitions, create partitions, etc. But in this tutorial, we are only interested in the DiskPart “Clean” command which wipes a disk leaving it unallocated and not initialized, so let’s see How to Clean Disk using Diskpart Clean Command in Windows 10.
When using the “Clean” command on MBR partition (Master Boot Record), it will only overwrite the MBR partitioning and hidden sector information and on the other hand when using the “Clean” command on GPT partition (GUID partition table) then it will overwrite GPT partitioning including the Protective MBR and there is no hidden sector information associated. The only drawback of the Clean command is that it only marks the data on the disk delete but will not securely erase the disk. In order to securely erase all the content from the disk, you should use “Clean all” command.
Now the “Clean all” command does the same thing as “Clean” command but it makes sure to wipe each and every sector of the disk which completely deletes all the data on the disk. Do note that when you use “Clean all” command then the data on the disk is unrecoverable. So without wasting any time let’s see How to Clean Disk using Diskpart Clean Command in Windows 10 with the help of the below-listed tutorial.
Clean Disk using Diskpart Clean Command in Windows 10
何か問題が発生した場合に備えて、必ず復元ポイントを作成してください。
1.Windows キー + X を押して選択します。 コマンドプロンプト(管理者)
2.Connect the drive or external device which you want to clean.
3.次のコマンドを cmd に入力し、Enter キーを押します。
DISKPART
4.Now we need to get a list of all the drive available and for that type the following command and hit Enter:
リストディスク
注: Carefully identify the disk number of the disk you want to clean. For example, you need to see the size of the drive then decide which is the drive you want to clean. If by mistake you selected any other drive then all the data will be wiped clean, so be careful.
Another way to identify the correct disk number of the disk you want to clean is to use Disk Management, just press Windows Key + R then type diskmgmt.mscと and hit Enter. Now note down the disk number of the disk which you want to clean.
5.Next, you need to select the disk in diskpart:
ディスクを選択#
注: Replace # with the actual disk number which you identify in step 4.
6.Type the following command to clean the disk and press Enter:
OR
すべてきれいにする
注: Clean command will quickly finishing formatting your drive while “Clean all” command will take about an hour per 320 GB to finish running since it performs a secure erase.
7.Now we need to create a partition but before that ensure that the disk is still selected using the following command:
リストディスク
注: If the drive still selected, You will notice an asterisk (*) next to the disk.
8.To create a primary partition you need to use the following command:
プライマリパーティションを作成
9.次のコマンドを cmd に入力し、Enter キーを押します。
パーティション1を選択してください
10.You need to set the partition as active:
アクティブ
11.Now you need to format the partition as NTFS and set a label:
format FS=NTFS label=any_name quick
注: Replace any_name with anything you want to name your drive.
12.Type the following command to assign a drive letter and press Enter:
割り当て文字= G
注: Make sure the letter G or any other letter you choose isn’t in use by any other drive.
13.Finally, type exit to close DiskPart and command prompt.
推奨:
それはあなたがうまく学んだことです How to Clean Disk using Diskpart Clean Command in Windows 10 ただし、このチュートリアルに関してまだ質問がある場合は、コメントのセクションで遠慮なく質問してください。