I wasn't sure which wiki to put this in. If the moderator has a better idea, please move it.
First, let me say norton ghost will do this easily, but not everyone has access to it.
tools used: bootable WinPE flash drive and imagex.exe from Microsoft AIK.free tool mkbt.exe from http://www.nu2.nu/mkbt
Background: The Dell diagnostic utility partition is a special hidden partition typically found at the beginning of hard drives shipped from Dell. You can boot it using F12 option. This partition is a FAT formatted partition with a custom type id of "DE" instead of "06". The OS on this partition is a dell modified DOS. To make a DOS partition bootable you use the SYS command, but there is no SYS command (that I know of) for the customized Dell DOS. Instead I use imagex to clone the partition file data, and mkbt to binary clone the boot sector. NOTE: I said boot sector, not the mbr.
The target drive number will be referred to as Y and the target diagnostic partition number will be referred to as Z. Typically Y=0 and Z=1. The target diagnostic partition drive letter will be referred to as D: and the flash drive letter will be referred to as F:. These almost certainly will be different on your system.Use diskpart commands:list disklist partlist volto verify this.
First to make the backup clone:boot WinPEdiskpartlist diskselect disk Ylist part; note: You are looking for the OEM partition. Remember the size of it.select part Zassignlist volexit; note: you may want to copy mkbt.exe to D: nowmkbt.exe -x -c D: D:\dellboot.binimagex /capture D:\ F:\delldiag.wim "DellDiag" "Dell Diagnostics Utility Partition" /check /verifyexit
Second, prepare the target diskboot WinPEdiskpartselect disk Yclean * WARNING: this optional step destroys data and builds a new empty MBRcreate partition primary size=99 id=deformat fs=fat label="DellDiag"assignlist volexit
Third, restore the clone... (continued from step 2 without rebooting)imagex /apply F:\delldiag.wim 1 D:\ /check /verifymkbt -x D:\dellboot.bin D:exit
I'm trying to get this to work and am getting stuck at the mkbt step. I just get 'the subsystem needed to support the image type is not present'. I assume this has to do with my WinPE USB drive not having what's needed to create the bin and then the wim files?
If anyone's out there running into this same issue, you have to build a x86 winpe boot image. I was using only x64 and mkbt.exe only works in a 32 bit environment (or a dual x86/x64 environment). And also imagex will only capture the Dell partition if it is using the 32 bit version of imagex.
Also, if you're following the above steps, you can skip the 'list vol' steps if you forcefully assign a letter to the OEM partition at each 'assign' step, such as 'assign letter=d'. Just saves a step.