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: Can "diskpart clean all" be performed after a "diskpart clean" ?

17 Aug 2012   #1
gctex

Windows 7 64 bit.
 
 
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.
  1. It shows up as "unknown", "not initiated" & "unallocated" on disk management.
  2. Trying to initialize the disk gives the error "the device cannot find the sector requested".
  3. There's no drive letter.
  4. Diskpart doesn't list its volume but lists the disk.
  5. It is listed under disk drives on device manager and device status says "This device is working properly".

Is there anyway to run "diskpart clean all" now? I guess a disk's volume needs to be selected before diskpart clean all" is executed.

I just would like to wipe the data before returning it. Since there is no drive letter I can't format it either.

Thanks !


My System SpecsSystem Spec
.

17 Aug 2012   #2
Dwarf

Windows 8.1 Pro RTM x64
 
 

If diskpart can see the disk, then you should be able to proceed with a clean all. Just list the disks, select the relevant one and issue the command. Note that if the disk is indeed faulty (as you suspect), then it is possible that the command will be unable to complete. Even so, it will take a considerable time (especially as it's an external USB drive), so it's probably best to start this to run overnight. Don't forget to disable any power saving features so that your laptop doesn't sleep automatically whilst doing this. It might also be beneficial to do this whilst you have the charger plugged in.
My System SpecsSystem Spec
17 Aug 2012   #3
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

gctex,
The one word answer is yes.

As pointed out by Dwarf, this will take several hours.
My System SpecsSystem Spec
.


17 Aug 2012   #4
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

You say diskpart still lists the disk.

Have you attempted to create a new partition on the drive in diskpart? And then clean all?

There are other tools:


SDelete

CMRR - Secure Erase

About DBAN | Darik's Boot And Nuke
My System SpecsSystem Spec
17 Aug 2012   #5
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

DiskPart's clean all command is disk-oriented. There can be zero partitions or any number of partitions.
My System SpecsSystem Spec
17 Aug 2012   #6
gctex

Windows 7 64 bit.
 
 

Thanks a lot guys, what I mean to say is I can do this:
  • list disk (it lists all disks. The one I want to clean up shows up as disk 3 with 1862 Gb)
  • select disk 3 (disk 3 is now selected)
  • list vol (it doesn't list any vol with 1862 Gb, all other volumes are listed. Before I ran "clean" command earlier, this volume of 1862 Gb was listed.)

I guess "clean" and "clean all" require you to select the appropriate volume before proceeding. There are other volumes that I do NOT want to touch.

@ignatzatsonic, no, I haven't looked at Sdelete or other tools. Looking at them now.
My System SpecsSystem Spec
17 Aug 2012   #7
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

gctex,
did you know that diskpart has a help command?

Using the help command, you will see that Clean and Clean All are disk level commands.

To use clean or clean all, you select a disk. You do not select a volume. You do not select a partition.

if you want to clean disk 3, then
select disk 3
clean

it's that simple.
My System SpecsSystem Spec
17 Aug 2012   #8
Dwarf

Windows 8.1 Pro RTM x64
 
 

You don't need the list vol command. For clean and clean all, this command is superfluous, as those two commands will remove all partitions (volumes) from that disk and leave it (when completed) in a RAW state, ready for partitioning/formatting or whatever in an OS of your choice.
My System SpecsSystem Spec
17 Aug 2012   #9
gctex

Windows 7 64 bit.
 
 

@ignatzatsonic

SDelete requires file, directory or drive letter to be provided. So I don't think that'll work here.
Secure Erase erred coz it works only for 32bit OS. My OS is 64bit.
My System SpecsSystem Spec
17 Aug 2012   #10
gctex

Windows 7 64 bit.
 
 

oh ok guys. I didn't know that "clean" & "clean all" didn't require volume to be selected. Somehow I was under that impression.

I'll give it a try and see. Thanks all.
My System SpecsSystem Spec
Reply

 Can "diskpart clean all" be performed after a "diskpart clean" ?




Thread Tools





Similar help and support threads
Thread Forum
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
diskpart script hangs at "select disk"
Hi. most of the machines I deploy have two disks. I am using a diskpart script to clean and format the disks/partitions. Well, I need to be able to deploy onto a machine that only has one disk. Since the "select" command doesn't have the "noerr" option the script fails on the single disk...
Installation & Setup
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
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...
Installation & Setup

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 07:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App