Erase Disk using Diskpart Clean Command in Windows 10  

Page 4 of 7 FirstFirst ... 23456 ... LastLast

  1. Posts : 34
    Windows10 home and Pro Version 20H2
       #30

    I can't believe it I have met someone who has the same symptoms as me. Disk is the same. In conclusion, your remedy is to clean the MBR and clean GPT? I will follow disk clean.

    - - - Updated - - -

    mrje1 said:
    Hey Brink again!

    Is this normal for it to repeat itself like shown in this image? Because I don't seem to see any mention of that?

    Attachment 200406
    Erase Disk using Diskpart Clean Command in Windows 10-a6b743d5-99ab-4c2f-9bfc-9ead6f688837.jpeg
      My Computer


  2. Posts : 2
    Windows 10
       #31

    Clean / clean all


    Brink said:
    Hello scop8, :)

    You should be able to run the "clean all" command from a command prompt at boot when opened after booting from Windows 10 installation media.
    Hi, I thought “clean” was for SSD & “clean all” was for HDD.

    I stand for correction, though !
    Last edited by Hitarth; 17 Jan 2021 at 05:40. Reason: Spelling
      My Computer


  3. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #32

    Hitarth said:
    Hi, I thought “clean” was for SSD & “clean all” was for HDD.

    I stand for correction, though !
    Hello Hitarth, and welcome to Ten Forums.

    Clean = delete disk

    Clean All = delete disk with override for a secure erase
      My Computers


  4. Posts : 2
    Windows 10
       #33

    Brink said:
    Hello Hitarth, and welcome to Ten Forums.

    Clean = delete disk

    Clean All = delete disk with override for a secure erase
    Thanks,
    So one can use the a m for either disks?
    🙏🏼
      My Computer


  5. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #34

    Hitarth said:
    Thanks,
    So one can use the a m for either disks?
    
    Correct. You can use either command on any SSD or HDD.
      My Computers


  6. Posts : 78
    Windows 10 Pro 64bit
       #35

    Just wanted to say thanks!

    I pulled the hard drive from my old (2008) laptop, put it in an external enclosure, read your tutorial, took a deee-ee-eep breath, and used Diskpart to clean it (making SURE I selected the right Disk number). I then used Disk Management to initialize it and create a new simple volume.

    Result: worked like a charm as far as I can tell, and I have a new 320 GB external drive I can use for backups or whatever for the cost of the enclosure ($10 or so). Uses USB 3.0 connection which is faster than some of my existing external drives.

    Tutorial did its job! Thanks, Brink!

    PS laptop video card was failing, so I donated it for parts/recycling to a worthy cause
      My Computers


  7. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #36

    LaurieD227 said:
    Just wanted to say thanks!

    I pulled the hard drive from my old (2008) laptop, put it in an external enclosure, read your tutorial, took a deee-ee-eep breath, and used Diskpart to clean it (making SURE I selected the right Disk number). I then used Disk Management to initialize it and create a new simple volume.

    Result: worked like a charm as far as I can tell, and I have a new 320 GB external drive I can use for backups or whatever for the cost of the enclosure ($10 or so). Uses USB 3.0 connection which is faster than some of my existing external drives.

    Tutorial did its job! Thanks, Brink!

    PS laptop video card was failing, so I donated it for parts/recycling to a worthy cause
    You're most welcome Laurie. I'm glad it could help.
      My Computers


  8. Posts : 296
    Windows 10
       #37

    Brink said:
    You're most welcome Laurie. I'm glad it could help.
    Can this be done on a usb flash drive? I tried to delete everything on the usb flash drive and half the files it deleted but other files I cannot because this disk is write protected. I then did the steps in bold below as I found this online if your usb flash drive is write protected but this didn't work. The files I have on this usb flash drive are encrypted with axcrypt. Certainly I don't need to encrypt all these files with axcrypt first? I want to delete the files off the usb. Clicking format shows same write error message.


    Would this method work? If it matters, I went to command prompt in start menu and right clicked on right as administrator which would be the same as clicking on command prompt adminitrator? Also this is a windows ten desktop that I did a clean reinstall few days ago. I had to set it up with a microsoft online account since that was the default. Does that mean I'm not in an admin account which is why that method i copied and pasted doesn't work? But would your method work for this?


    Again makes no sense why I can't format this usb flash drive. I mean if someone were to forget their encryption to the usb, certainly they could still format it right?


    Solution 1: remove disk write protection using CMD

    1. Hit Windows Key + X on your keyboard, and select Command Prompt (Admin) from the menu.

    2. Type diskpart and press Enter.

    3. Type list disk and press Enter.

    4. Type select disk #(ex: Disk 1) to select the disk which is write protected and press Enter.

    5. Type attributes disk clear readonly to change the disk’s properties so that it is no longer read-only and press Enter.

    6. Type exit and press Enter twice to exit Diskpart and Command Prompt continuously. Re-plug your USB flash drive to check if the write protection error is solved.
      My Computer


  9. Posts : 68,997
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #38

    Newmann said:
    Can this be done on a usb flash drive? I tried to delete everything on the usb flash drive and half the files it deleted but other files I cannot because this disk is write protected. I then did the steps in bold below as I found this online if your usb flash drive is write protected but this didn't work. The files I have on this usb flash drive are encrypted with axcrypt. Certainly I don't need to encrypt all these files with axcrypt first? I want to delete the files off the usb. Clicking format shows same write error message.


    Would this method work? If it matters, I went to command prompt in start menu and right clicked on right as administrator which would be the same as clicking on command prompt adminitrator? Also this is a windows ten desktop that I did a clean reinstall few days ago. I had to set it up with a microsoft online account since that was the default. Does that mean I'm not in an admin account which is why that method i copied and pasted doesn't work? But would your method work for this?


    Again makes no sense why I can't format this usb flash drive. I mean if someone were to forget their encryption to the usb, certainly they could still format it right?


    Solution 1: remove disk write protection using CMD

    1. Hit Windows Key + X on your keyboard, and select Command Prompt (Admin) from the menu.

    2. Type diskpart and press Enter.

    3. Type list disk and press Enter.

    4. Type select disk #(ex: Disk 1) to select the disk which is write protected and press Enter.

    5. Type attributes disk clear readonly to change the disk’s properties so that it is no longer read-only and press Enter.

    6. Type exit and press Enter twice to exit Diskpart and Command Prompt continuously. Re-plug your USB flash drive to check if the write protection error is solved.
    Hello Newmann,

    Normally, you can use this on a USB flash unless the USB is write protected.

    Enable or Disable Disk Write Protection in Windows
      My Computers


  10. Posts : 296
    Windows 10
       #39

    Brink said:
    Hello Newmann,

    Normally, you can use this on a USB flash unless the USB is write protected.

    Enable or Disable Disk Write Protection in Windows

    Hi. The first step I can't do because there is no button to turn on/off in the usb flash drive.


    I did the third step... that doesn't work. Still shows that message.

    - - - Updated - - -

    When I press on windows key and the letter X, there is no command prompt showing. I see that windows powershell and windows powershell admin.


    I had manually typed in command prompt in start menu to get there... but right click right as admin. So is that the issue? Again Im not sure if im logged in as admin... because when i clean reinstall this desktop, i had to sign up for a microsoft office email account as my sign in each time.
      My Computer


 

Tutorial Categories

Erase Disk using Diskpart Clean Command in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:36.
Find Us




Windows 10 Forums