Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Diskpart Clean All Error


04 Jan 2011   #1

Windows 7 32bit
 
 
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 SpecsSystem Spec
.

04 Jan 2011   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 SpecsSystem Spec
04 Jan 2011   #3

Windows 7 32bit
 
 

^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 SpecsSystem Spec
.


04 Jan 2011   #4
Microsoft MVP

 

My System SpecsSystem Spec
04 Jan 2011   #5
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Quote   Quote: Originally Posted by NeedHelp99 View Post
^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 SpecsSystem Spec
04 Jan 2011   #6

Windows 7 Ultimate x64 SP1
 
 

Quote   Quote: Originally Posted by NeedHelp99 View Post
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 SpecsSystem Spec
06 Jan 2011   #7

Windows 7 32bit
 
 

^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 SpecsSystem Spec
06 Jan 2011   #8
Microsoft MVP

 

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 SpecsSystem Spec
07 Jan 2011   #9

Windows 7 32bit
 
 

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 SpecsSystem Spec
07 Jan 2011   #10
Microsoft MVP

 

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 SpecsSystem Spec
Reply

 Diskpart Clean All Error




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:33 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33