Windows 10: Accidentally wiped my Operating System drive with diskpart clean all command

Discus and support Accidentally wiped my Operating System drive with diskpart clean all command in Windows 10 Software and Apps to solve the problem; I was using the command prompt diskpart clean all command to wipe an SSD. When it finished cleaning that disk, I accidentally hit enter again and the... Discussion in 'Windows 10 Software and Apps' started by allanjrosas, Feb 2, 2022.

  1. Accidentally wiped my Operating System drive with diskpart clean all command


    I was using the command prompt diskpart clean all command to wipe an SSD. When it finished cleaning that disk, I accidentally hit enter again and the "clean all" command started once more. I didn't feel like waiting hours again for it to finish so I googled how to stop a diskpart clean all and it said to either unplug the drive or reboot. I chose to reboot my pc, Which is where I am now, I can no longer boot into windows and I get sent to a blue Recovery screen. When I go into my BIOS to see what's up, both my HDD and SSD seem to be fine but my m.2 SSD shows no storage value. I think it's safe

    :)
     
    allanjrosas, Feb 2, 2022
    #1

  2. DISKPART CLEAN

    Hello

    I'm Peter F independent Advisor

    You will get this error when you are using diskpart clean command on system disk. The system disk contains the Windows operating system files and other critical files, if you are allowed to clean the system disk, all the data and partitions will be gone. That
    will result in a lot of errors and chaos. Meanwhile, the delete volume is greyed out in Disk Management. In this case, the new SSD drive may be regarded as the system disk due to the system files, etc.

    Using Windows installation disc to clean

    If you have the Windows installation disc, you can follow these steps to solve clean is not allowed issue in Windows 7/8/10:

    1. Insert the Windows installation disc, then boot from it.

    2. Click Repair your computer> Troubleshoot > Advanced Options > Command Prompt.

    3. Then input the diskpart commands to clean hard disk:

    diskpart

    list disk

    select disk [disknumber]

    clean

    Diskpart Clean

    Then you could create a new partition on the drive to solve this problem.

    Reference

    https://www.disk-partition.com/articles/virtual...

    This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised
    on the site before you decide to download and install it.

    I hope it helps
     
    Pedro V Flores, Feb 2, 2022
    #2
  3. DaveM121 Win User
    How did I wipe a disconnected drive while performing a fresh install?

    Hi codyfarris

    From your description, that drive was connected, when you were wiping partitions from the other drive, is it possible you accidentally wiped that deive as well, it is the logical conclusion

    What method did you use to wipe those partitions, did you use Diskpart - list volume. Diskpart list disk or some other commands?
     
    DaveM121, Feb 2, 2022
    #3
  4. W1zzard Win User

    Accidentally wiped my Operating System drive with diskpart clean all command

    W7 Hard drive partition issue

    to get rid of that 100 meg windows partition that setup creates for you on a new install on a blank hdd:

    - press shift+f10 when on the partition management screen in setup <-- this opens a command prompt
    - diskpart <-- start the windows command line partition management tool
    - list disk <--- list the installed hdds in this computer for the next step
    - select disk 0 <- might have to replace 0 with the number of the correct disk
    - clean <-- this will erase all data on the disk you selected one step up- dont use the wrong disk!
    - create partition primary <- creates a primary partition taking up all space on the drive, adjust the command if necessary
    - exit, exit to exit diskpart and the command prompt
    - click refresh in partition manager and select your newly created partition and install to that
     
    W1zzard, Feb 2, 2022
    #4
Thema:

Accidentally wiped my Operating System drive with diskpart clean all command

Loading...
  1. Accidentally wiped my Operating System drive with diskpart clean all command - Similar Threads - Accidentally wiped Operating

  2. Accidentally wiped my Operating System drive with diskpart clean all command

    in Windows 10 Gaming
    Accidentally wiped my Operating System drive with diskpart clean all command: I was using the command prompt diskpart clean all command to wipe an SSD. When it finished cleaning that disk, I accidentally hit enter again and the "clean all" command started once more. I didn't feel like waiting hours again for it to finish so I googled how to stop a...
  3. Accidentally wiped my Operating System drive with diskpart clean all command

    in Windows 10 Installation and Upgrade
    Accidentally wiped my Operating System drive with diskpart clean all command: I was using the command prompt diskpart clean all command to wipe an SSD. When it finished cleaning that disk, I accidentally hit enter again and the "clean all" command started once more. I didn't feel like waiting hours again for it to finish so I googled how to stop a...
  4. Clean all diskpart

    in Windows 10 Gaming
    Clean all diskpart: so i accidentally use command clean all instead clean because windows install wont format my hard drive with error code 0x8004242d D:< when refresh the where do you want to install windows? page it just formated with only one partition i have three partition before D': idk if...
  5. Clean all diskpart

    in Windows 10 Software and Apps
    Clean all diskpart: so i accidentally use command clean all instead clean because windows install wont format my hard drive with error code 0x8004242d D:< when refresh the where do you want to install windows? page it just formated with only one partition i have three partition before D': idk if...
  6. Clean all diskpart

    in Windows 10 Installation and Upgrade
    Clean all diskpart: so i accidentally use command clean all instead clean because windows install wont format my hard drive with error code 0x8004242d D:< when refresh the where do you want to install windows? page it just formated with only one partition i have three partition before D': idk if...
  7. Used the "clean" command in DiskPart by mistake

    in Windows 10 Ask Insider
    Used the "clean" command in DiskPart by mistake: I'm in a pickle and need somebody to help me. While removing some unnecessary partitions in HDD, I accidentally ran "clean" command instead of using "delete partition" command in DiskPart. Right after that, I also ran "create partition primary" command. But fortunately, I...
  8. Clean command in DiskPart in cmd by mistake

    in Windows 10 Network and Sharing
    Clean command in DiskPart in cmd by mistake: Hey geeks, My PC was having some trouble from last few days, so during the chkdsk, it made one of my partition RAW. So, in order to repair it, I accidently ran clean command in diskpart of Command Prompt Admin on my 1 TB HDD. Then I closed the command prompt immediately...
  9. Accidentally Cleaned my USB Through Diskpart

    in Windows 10 Ask Insider
    Accidentally Cleaned my USB Through Diskpart: Earlier today I was trying to format one of my partitions with my usb plugged in through diskpart but instead bricked my usb. I used diskpart clean thinking the 30gb disk was my partition for some reason but it was actually my 30gb usb. I tried formatting it through the file...
  10. Operating system all files wiped clean after restarting pc

    in Windows 10 Installation and Upgrade
    Operating system all files wiped clean after restarting pc: I restart my pc and windows 10 operating system gone. Pc boots to bios. My ssd and hd are completely wiped clean. I can't turn pc off. Once I reload windows 10 pro and programs have to leave pc in sleep mode it will wake ok no issues. I can't figure out why if I turn off pc...