Managing recovery partitions.
1. To Verify the Disk Number to Clean
WarningBe sure that you have the correct Disk #. You would not want to wipe clean the wrong disk.A) Open the Start Menu, then right click on Computer and click on Manage.
B) If prompted by UAC, click on Yes.
C) Click on Disk Management in the left pane, and make note of the disk # in the middle pane of the disk that you want to clean or clean all. (see screenshot below)
NOTE: For example, I would use Disk 1 if I wanted to use clean or clean all on my USB key drive.D) Look under the Disk # (ex: Disk 3) in the left part of the middle pane, and check to make sure it says Online. If it doesn't, then right click on Disk # and click on Online to make it so. (see screenshots below)
2. Boot to a WinPE7 disk (Email Geoff for one if you haven't got one)
Open a elevated command prompt, or a command prompt at boot
<< You can use your Boot image CDrom (if you have a WDS boot disk) ... just boot to it as normal then select 'Cancel' when you come to the final image selection menu >>
3. In the elevated command prompt, type diskpart and press Enter. (see screenshot below)4. In the elevated command prompt, type list disk and press Enter. (see screenshot below)
NOTE: This will give you a list of disk numbers to select from.5. In the elevated command prompt, type select disk # and press Enter. (see screenshot below)
NOTE: You would substitute # for the disk number listed that you want to use clean or clean all on. For example, I want to use one of them on Disk 1 (from step 1) for my USB key drive, so I would type select disk 1 and press Enter.6. To Use the Clean Diskpart Command
A) In the elevated command prompt, type clean and press Enter. (see screenshot below)
NOTE: This will not take long to finish. Think of it being like a quick format.
7. You will now need to create a new partition or volume on the disk to be able to use it again.
NoteA primary partition is a type of partition created on a hard drive that can have a operating system installed on it. A primary partition functions as though it were a physically separate hard drive. By default on a MBR disk, you can create a maximum of 3 Primary partitions and 1 Extended partition with up to 128 logical volumes in the extended partition on a single hard disk
8. In the elevated command prompt, type create partition primary and press Enter. (See screenshot below)
NOTE: This will create a new blank RAW partition with selected disk (step 5) that contains the unallocated partition free space.9. In the elevated command prompt, type list volume and press Enter. (See screenshot below)
NOTE: Look for the volume number that has the same Size as from the Free space in step 4. For example, Volume 3.10. To Format the Partition or Disk as a NTFS File System
NOTE: This would be good for using with Windows 7 or Vista for example.A) In the elevated command prompt, type format fs=ntfs quick and press Enter. (See screenshot below)
NOTE: Having quick added at the end of the command will do a quick format instead of a full format on the new blank RAW partition (step 6) to make it a new partition.
13: Type exit to exit DISKPART.
You can now image the machine.