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: Disk - Clean and Clean All with Diskpart Command


03 Jan 2010   #209
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Disk - Clean and Clean All with Diskpart Command

How to "Clean" or "Clean All" a Disk with the Diskpart Command


...

My System SpecsSystem Spec
09 Jun 2014   #210
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

If I may. From the tutorial.

Quote:
Be sure to backup anything that you do not want to lose on the disk that you use clean or clean all on first. It will be to late afterwards. All data will be permanently lost on the disk.


My System SpecsSystem Spec
09 Jun 2014   #211
tinhdx

64
 
 

Yes, thanks a lot Brink
My System SpecsSystem Spec
02 Jul 2014   #212
Scoop

Windows 7 Home Premium 64 bit
 
 

Shawn,

I recently had an encounter with the "disk signature" conflict when I was preparing my Laptop PC for a routine clone process.

What happened, was I connected up my Target HDD via a SATA/USB Enclosure to delete the partitions before cloning. When I connected the Target HDD (which was a near-mirror copy since it had been cloned a few weeks earlier), I saw the "disk signature conflict" message in the Disk Management Snap-in console on the left-hand side.

It wasn't unexpected but I rarely see that message appear when attaching my Target HDD's prior to cloning.

When I encountered that "signature conflict" issue, I booted up in "Gparted" and deleted the partitions that way, thinking that I couldn't use the "clean" command without bringing the HDD online first.


My question about the "clean" command is,

- Is it necessary to bring the HDD online before using the Clean command?

Or can I just use the "select disk x" to bring it to focus, then use the "clean" command without bringing the HDD online?
My System SpecsSystem Spec
02 Jul 2014   #213
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hey Scoop,

Yeah, if the disk is offline, you'll get the error below when trying to run "clean" or "clean all".

Quote:
DISKPART> clean

Virtual Disk Service error:
The operation is not allowed on a disk that is offline.
My System SpecsSystem Spec
.


02 Jul 2014   #214
Scoop

Windows 7 Home Premium 64 bit
 
 

Shawn,

Thanks for the info. It's what I guessed would happen. No problem, since that conflict appears (for me) to be rare, I can always use Gparted to access the disk outside of Windows.
My System SpecsSystem Spec
02 Jul 2014   #215
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

True dat.
My System SpecsSystem Spec
4 Weeks Ago   #216
M4Imo

Windows 7 Ultimate
 
 

Hello all.

I own a hdd which was before in laptop that is not functioning, but hdd was intact and working good (500gb hitachi sata II), so i am planning to use it as external hdd, for both pc and ps3. It was partitioned in a way that had primary partition of 450gb and recovery partition of 15gb, and also a small system reserved so i used clean all, because i googled that is the easiest way to merge and in same time format the two partitions. The clean all command is still working (3.5 hours for now), but in the disk managment, hdd im doing clean on, it already says unallocated, also it is offline now, and whenever im entering disk managment it asks me shall i do initialization? I should guess it's better to wait with it till it's over.

My questions are now, if i cancel the procedure now, would there be any damage, and what steps i should do after, use only clean, or start making partition and format?

When i start making partitions, i suppose first is initialization, do i go for MBR, or GPT (this hdd will most likely be storage one)? After that when allocating partitions on it, i would like to make one partition NTFS, and one FAT32, both same in size. From the guides i've seen i must type what size of partition i wan't so im interested what number i must type in the correct box, 250gb or it must be in some different unit size? And after the clean all procedure, if i wait till it's really over, will i have on command full 500gb, or will it be little smaller? For now, unallocated size says 465,76gb.

Thanks for any help
My System SpecsSystem Spec
4 Weeks Ago   #217
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello M4Imo, and welcome to Seven Forums.

If you cancel the "Clean all", then you'll just need to start over, but I would use the "clean" command instead to finish faster. Just don't do a hard restart of the computer to stop it.

Afterwards, I'd go with using MBR when creating a new primary partition.

1024 MB = 1 GB, so you would type 256000 for 250 GB when you shrink the fist partition to create the other partition with.

Partition or Volume - Shrink

Partition or Volume - Create New

You can indeed have one partition NTFS, and the other FAT32.

Hope this helps,
Shawn
My System SpecsSystem Spec
4 Weeks Ago   #218
M4Imo

Windows 7 Ultimate
 
 

Hey and thanks.

I will probably do the cancel then. If i've understood good, i can do it with CTRL and c.

Also when i will start with making the partitions, should i set it to be basic, or dynamic?

For now like i have mentioned before, it says i have 465,76 gb available, not 500. Is the 35 gb reserved for something else? If it stays that after just the clean, i will just do 50-50 then.

Just for the convinience, should i do firts partition with NTFS, and then the second FAT32? Or is it just the same?

And i suppose i can even skip the shrinking since all my hdd will be unalllacoted so i can just start partitioning.

Thanks
My System SpecsSystem Spec
4 Weeks Ago   #219
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

That would be correct to cancel, but it may take time for it to cancel though.

You would want to have a basic disk.

You can use any size you like for the partitions. That was just an example. Multiply 1024 by how many GBs you want the partition to be for what to type in.

I'm not familiar if the PS3 requires the FAT32 partition to first or second, but use whatever is required for it.

Once you create the first primary partition, you'll need to shrink it by how much you want to use for the second partition to then have that as unallocated space to create the second partition with.
My System SpecsSystem Spec
Comment

 Disk - Clean and Clean All with Diskpart Command




Tutorial Tools



Similar help and support threads for2: Disk - Clean and Clean All with Diskpart Command
Windows 7 Tutorial Category
Should I clean my HDD with Parted Magic or Diskpart clean all command? General Discussion
DISKPART & HDD help - Clean All interrupted, disk no longer found. General Discussion
Can "diskpart clean all" be performed after a "diskpart clean" ? Hardware & Devices
Solved Diskpart hangs running 'clean all' Installation & Setup
Solved A simple question about diskpart /clean all General Discussion
Do not see HDD after clean all using diskpart General Discussion
Solved Diskpart Clean All Error General Discussion

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 09:13 PM.
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