| Windows 7: Diskpart Clean All Error |
04 Jan 2011
|
#1 | | |
Diskpart Clean All Error Hello, came here to post my problem if anyone is willing to help.
Due to a recent virus which I can't seem to get rid of, I'm going to do a clean install of windows 7 from an iso file with virtual clone drive. However, after researching a bit I found it would be best to first do a clean all command from diskpart to overwrite any infected code on my computer.
Also noticing that the clean all command cannot be done from windows itself, I booted up the iso into the install, Shift+F10 'ed my way into a command prompt and tried the command, but I seem to always get this error:
"clean all is not allowed on the disk containing the current boot, system, pagefile, crashdump, or hibernation volume."
Any ideas on what could be wrong? | My System Specs |
| |
04 Jan 2011
|
#2 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |
Hello NeedHelp99, and welcome to Seven Forums.
While you are doing a clean install, you could also just click on the Drive options (advanced) link at that stage, and Delete the volume to wipe the drive. Afterwards, you should be able to install Windows 7 on the remaining single Disk.
See the screenshot under step 7 and 8 in the tutorial below for more on this. Clean Install Windows 7
Hope this helps,
Shawn | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
04 Jan 2011
|
#3 | | |
^Thank you, I will try that. For clarification, does just deleting the data on the drive achieve the same thing as clean all when it wipes the drive with a set of zeroes? Or will the former be more than enough to fix anything code-wise due to the virus? | My System Specs | | |
04 Jan 2011
|
#5 | | 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise Texas |

Quote: Originally Posted by NeedHelp99 ^Thank you, I will try that. For clarification, does just deleting the data on the drive achieve the same thing as clean all when it wipes the drive with a set of zeroes? Or will the former be more than enough to fix anything code-wise due to the virus? It will only mark the partition as deleted, but it will be formatted automatically during the installation of Windows 7. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Self built custom OS 64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise CPU Intel i7-3930K 3.2 Ghz (O/C 4 Ghz) Motherboard ASRock X79 Extreme11 Memory 32 GB (8GBx4) G.SKILL DDR3 Quad PC3-19200 2400MHz Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card SB Recon 3Di Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Thermaltake Level 10 GT Snow Edition Cooling Corsair Hydro H100 Hard Drives 256GB OCZ Vector
160GB OCZ RevoDrive X2
2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
Lite-On iHBS212 12x BD Writer
Samsung CLX-3175FW Printer
Netgear WNDR3800 Router
Motorola SBG6580 Cable Modem
2x APC Back-UPS XS 1500 |
04 Jan 2011
|
#6 | | Windows 7 Ultimate x64 SP1 Philadelphia, PA |

Quote: Originally Posted by NeedHelp99 Any ideas on what could be wrong? Yeah, you can't do a clean install of the OS you are currently running. Since you want to make sure all code is removed...I'm not sure why you'd want to start the install from within the infected OS. Would you change your car's oil while driving down the highway?
Burn the iso image to an actual disc (or better yet, use it to make a bootable flash drive) then use either media to do a clean install by booting to from the disc or flash drive. Then you'll be able to completely clear your hard drive and do a clean install. | My System Specs | | OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-2600 Motherboard Gigabyte GA-P67A-UD3P-B3 Memory 12 GB Patriot Extreme DDR3-1333 Graphics Card Nvidia GTX 470 Monitor(s) Displays Dell UltraSharp 2209WA PSU OCZ ModStream 700W Case CoolerMaster HAF 912 Advanced Cooling CoolerMaster Hyper 212 Plus Hard Drives OCZ Agility3 240 GB, WD5001AALS, WD7501AALS |
06 Jan 2011
|
#7 | | |
^Thanks again for the help. I made the bootable flash drive on another computer, used that for the installation and did all of the clean all commands no problem.
However, I do now have another problem if you can help, and if this is suitable for the same thread.
On the second page of the installation, the "select a driver to be installed" page, I have no drivers listed. There's options to browse and rescan, so I downloaded and moved driver files(using ImgBurn) for my fujitsu model onto a CD from here: Ultimate Laptop Drivers, Laptop Reviews & Laptop Specs Resource – Laptopdrivers.net , and popped it in. Though, when I select that drive it still tells me there's no drive to install upon. I don't know if this involves a SATA driver or what.
I've seen posts mention that when they used a DVD to boot, they simply re-burned the ISO at a slower speed to solve this, but would the same process apply to the USB I used to boot the install?
Any help on this matter is greatly appreciated, and I apologize in advance for my lack of computer knowledge | My System Specs | | |
06 Jan 2011
|
#8 | | Win7 x 6 PC's California, Florida, Boston |
Are you saying you have no drives listed on install screen, because you typed " drivers?"
It is unlikely Windows 7 installer is missing any SATA driver, but you can try to unzip the SATA controller driver from the Fujitsu Support Downloads webpage for your model, browse to it from Load Drivers until it picks it up. It should then show the HD.
If not, then make sure you have the latest BIOS version update for your model. If so, reset the CMOS: Clear CMOS - 3 Ways to Clear the CMOS - Reset BIOS
Next in BIOS setup check the SATA controller setting: try AHCI first, then IDE mode if necessary.
If you're flash stick installer succeeded at cleaning the HD then it should install, but writing it again may help. The method which always works for me is to install UltraISO trial version: on file tab Open ISO, on Boot tab Write Disk image, Format, Write.
Let us know how it goes. | My System Specs | | |
07 Jan 2011
|
#9 | | |
Let me update. With no success on the Driver Install Screen, I went to BIOS to check on the above advice, however I see no options in any of the tabs regarding anything SATA, AHCI, or IDE.
Even more bad news, once I exited BIOS and restarted, I now get an error saying "BOOTMGR is missing" whenever I place my USB first in the boot order(To go back to Windows 7 install). I then booted to CD/DVD first and popped in a Windows 7 System Repair Disk. It couldn't repair anything with my current computer state, but the diagnostic did give me the Error Code 00410001, saying it could be a disk error.
Any idea how to get past this problem so I can get back to the install and see if it recognizes the SATA driver? | My System Specs | | |
07 Jan 2011
|
#10 | | Win7 x 6 PC's California, Florida, Boston |
That Bootmgr missing means it is skipping the flash stick installer and trying to boot the wiped HD so make sure USB stick is set to boot first in BIOS setup before HD, all other HD's and peripherals are unplugged.
Next try booting it using one-time BIOS Boot menu key with HD set first to boot.
Since you have a DVD drive, suggest you burn ISO to DVD using ImgBurn at 4x speed to try that method. Where did you get ISO?
Did you reset the CMOS? Is your HD registering correctly in BIOS? | My System Specs | | Diskpart Clean All Error problems? All times are GMT -5. The time now is 11:55 PM. | |