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

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

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

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

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

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

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

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

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

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

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 for2: Can "diskpart clean all" be performed after a "diskpart clean" ?
Thread Forum
Changing the "minimize" "maximize" and "close" buttons of a theme Customization
diskpart script hangs at "select disk" Installation & Setup
Solved diskpart's "clean all" hangs, no signs of HD activity Performance & Maintenance
Solved got an error at "clean" part of DISKPART Hardware & Devices
is "clean" and "quick format" sufficient Installation & Setup
Solved Not quite sure about doing "full format" after "clean all" Installation & Setup
Wipe HDD with "diskpart >> clean all" 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 12:17 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