Diskpart "Clean All" command can remove or repair bad sector ??

ChoYun Lu 1 Reputation point

Hi all.

There is a question confuse me for a long time. As I know many hard disk vendors provide official disk utilities for remove or repair bad sectors for permanently. And the function usually called "Fill Zero" or "Write Zero", and there is one command called "Clean All" in Microsoft Diskpart. According to Microsoft official document, "Clean All" command is perform "Write Zero" action on hard disk too. Some official hard disk utilities has "Quick" and "Full" zero same as Diskpart "Clean" and "Clean All", and hard disk zeroing action is performed by hard disk firmware, that means no matter what software we use, they are doing same action in background. So I think that Diskpart is doing same thing like official HD utilities, that mean Diskpart may remove or repair bad sectors.

I need to confirm whether Diskpart could remove bad sectors or not because I have to care NAS in my job. I need to know what is Diskpart doing in background. Please ignore low level format definition and how low level format remark bad sector, I already know that.

Thank you.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
23,918 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jenny Feng 13,666 Reputation points

    @ChoYun Lu
    Clean all does everything that clean does, but all data is zeroed (securely erased) so that it's not recoverable.

    Removes any and all partition or volume formatting from the disk with focus. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten. On GUID partition table (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten; there is no hidden sector information.

    clean all
    Specifies that each and every sector on the disk is zeroed, which completely deletes all data contained on the disk.
    For your reference:

    Hope above information can help you.


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments