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: Wipe HDD with "diskpart >> clean all"

29 Oct 2011   #1
TorehanB

Windows 7 Home Premium 64bit
 
 
Wipe HDD with "diskpart >> clean all"

Hi everyone,

I was triying to wipe my HDD with diskpart >> clean all to overcome "Windows could not configure one or more system components" issue which I post to technet forum afew days ago.

But I have some concerns about wiping process.

Most of the notebooks are being sold with hidden partition which contains OEM Windows 7 and required driver files for a clean systems recovery. That partition made hidden by the manufacturers as factory defaults.

I was wondering if diskpart can handle with this hidden partition?

If not, that won't be a actual wiping the HDD that may reason of the issue mentioned in the link.

Any comment would be appreciated.
Thanks in advance,
Torehan


My System SpecsSystem Spec
.

29 Oct 2011   #2
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

My understanding is that diskpart "clean all" command does wipe hidden partitions.

I think you can also delete hidden partitions specifically. Use the diskpart "detail disk" command to obtain detailed information about the current in-focus disk. That will tell you if the partition is hidden. Then select that partition and type in “delete partition override”.
My System SpecsSystem Spec
29 Oct 2011   #3
TorehanB

Windows 7 Home Premium 64bit
 
 

Thank you for your comment.
Well, yes after using "detail disk", it can be seen there is no hidden partition. That means this is not a possible reason previously referenced issue.

That may be a completely different topic but my aim was to talk about issue that referenced in my first post.

What could be the reason? Why installation of 64bit couldn't be completed whereas 32bit could?
My System SpecsSystem Spec
.


29 Oct 2011   #4
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

If you check this tutorial, you will see the the "clean all" command does indeed wipe the drive completely, including any hidden OEM partitions.

Disk - Clean and Clean All with Diskpart Command

I can't comment on your Technet thread, because the link appears to be dead.
My System SpecsSystem Spec
29 Oct 2011   #5
TorehanB

Windows 7 Home Premium 64bit
 
 

Sorry for that, link fixed.
My System SpecsSystem Spec
29 Oct 2011   #6
seavixen32

Windows 7 Ultimate SP1 64-Bit
 
 

Cheers.

You say the 32-bit version installs OK.

I suppose there is a possibility there is a problem with the 64-bit DVD.

Is there any chance you can borrow a 64-bit disk from a friend and try that?
My System SpecsSystem Spec
29 Oct 2011   #7
TorehanB

Windows 7 Home Premium 64bit
 
 

I have allready tried that. I have two different Windows 7 Ultimate DVD and both ends up with the same problem.

I think the clue for the reason of the problem is in the differences between 32bit and 64bit confugration process.

What are the system components that are being mentioned in the error?
My System SpecsSystem Spec
29 Oct 2011   #8
gregrocker
Microsoft MVP

 
 

The value of Diskpart "Clean" command for install failures is to wipe the boot sector of possibly corrupt or conflicting code blocking install. It isn't necessary to run "Clean all" which is more for overwriting data securely and does no more than "Clean" for this critical boot sector purpose.

"Clean" will destroy everything on the HD so that it is recoverable only by Data REcovery software, "Clean all" not even that.

Where did you get Win7? You said you've tried two disks - what is their source?

Try writing a verified ISO to flash stick using Universal USB Installer with Win7 in dropdown, boot under USB, Removable or HD's in one-time BIOS Boot Menu.

I would find a HD which can afford to be wiped and try "Clean" command with your 64 bit install problem.

If these fail we can continue troubleshooting your issue here.
My System SpecsSystem Spec
29 Oct 2011   #9
TorehanB

Windows 7 Home Premium 64bit
 
 

Disks are two different legal copies of Windows 7 Ultimate DVD which one is belonged to me the other is belong to my father.

What do you mean a verified iso? Is it OK if I would create iso image of my DVD with iso maker program e.g Magic Iso ?



Quote   Quote: Originally Posted by gregrocker View Post
The value of Diskpart "Clean" command for install failures is to wipe the boot sector of possibly corrupt or conflicting code blocking install. It isn't necessary to run "Clean all" which is more for overwriting data securely and does no more than "Clean" for this critical boot sector purpose.

"Clean" will destroy everything on the HD so that it is recoverable only by Data REcovery software, "Clean all" not even that.

Where did you get Win7? You said you've tried two disks - what is their source?

Try writing a verified ISO to flash stick using Universal USB Installer with Win7 in dropdown, boot under USB, Removable or HD's in one-time BIOS Boot Menu.

I would find a HD which can afford to be wiped and try "Clean" command with your 64 bit install problem.

If these fail we can continue troubleshooting your issue here.
My System SpecsSystem Spec
29 Oct 2011   #10
gregrocker
Microsoft MVP

 
 

Yes you can use that or ImgBurn to extract ISO from DVD.

Or install UltraISO trial version, on Disk Tab Select Open DVD, on Bootable tab select Write Disk Image, Format stick, Write. Boot under USB, Removable, or HD's.
My System SpecsSystem Spec
Reply

 Wipe HDD with "diskpart >> clean all"




Thread Tools





Similar help and support threads
Thread Forum
Unknown reasoning for "Error: Cannot Wipe free space for UNC drive"
Hello all, new member here. I have came across this forum many times in the past years when searching, and have found it to be very beneficial. So, I figured I would see if anyone here may know why this is happening. First off, the information about the Laptop in question; -Asus K60IJ -Windows...
General Discussion
HDD shows in "Device Manager" but not in "DiskPart"or" Disk Management
Hi Guys, any ideas how to access my external hard drive device manager can see it but it does not appear in disc management. I use this HDD perfectly in my car HDD player. But when I try to connect it to my Laptop, it does not show up in disk management. Please check the attached screen...
Hardware & Devices
Diskpart "Clean All" Hangs
Hello everyone. I've recently received a Lenovo H405 series computer that is completely wiped and only can run BIOS. I have all of the repair disks, the Windows 7 installation disk, along with a disk to install all of the drivers. I've been unable to fully install Windows 7 thus far after trying...
Installation & Setup
Can "diskpart clean all" be performed after a "diskpart clean" ?
Hi all, I have an external 2Tb hard disk that's gone bad. It is under warranty so I can return it back. I was trying to wipe it clean and erroneously ran "diskpart clean" instead of "diskpart clean all". Now that all partitions are all gone, my laptop won't recognize it anymore. It shows...
Hardware & Devices
diskpart's "clean all" hangs, no signs of HD activity
I am following the instructions at http://www.sevenforums.com/tutorials/52129-disk-clean-clean-all-diskpart-command.html to erase my entire HD before sending my laptop somewhere. In particular, I am issuing the diskpart command from a "command prompt at boot". I only have one HD on the laptop,...
Performance & Maintenance
got an error at "clean" part of DISKPART
I got this error when trying to format my 4gb Kingston (DT101 G2) please help if you can. DISKPART> clean DiskPart has encountered an error: The request could not be performed because of an I/O device error. See the System Event Log for more information. DISKPART>
Hardware & Devices

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 13:14.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App