problem I've encountered was that I am not quite able to replicate the exact disk properties using Diskpart, so the first thing
to do is get some data about the original HDD with the DOS image on it.
The original HDD is a 500GB Seagate Barracuda SATA. My testing drive is a 60GB Toshiba HDD2D35. I am using a different sized
drive for testing on purpose, since I do not want to lock the deployment method down to a particular hard disk or volume size.
Since I am using a 64bit WinPE, there are some inherent limitations to what kinds of programs I can run, since there is no WoW
in WinPE. Fortunately, Systemintegrasjon has available a 64bit binary of MbrFix.exe:
http://www.sysint.no...ting/mbrfix.htm
I found that it is important to get this information first, so I can compare the after-effects to maybe help determine how to
properly image with Imagex. First up is what Diskpart can tell us about the original drive.
DISKPART> detail disk Disk ID: F0F97B27 Type : SATA Status : Online Path : 0 Target : 0 LUN ID : 0 Location Path : PCIROOT(0)#PCI(1F02)#ATA(C00T00L00) Current Read-only State : No Read-only : No Boot Disk : No Pagefile Disk : No Hibernation File Disk : No Crashdump Disk : No Clustered Disk : No Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 C FAT32 Partition 465 GB Healthy DISKPART> detail part Partition 1 Type : 0C Hidden: No Active: Yes Offset in Bytes: 32256 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 0 C FAT32 Partition 465 GB Healthy DISKPART> detail vol Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- * Disk 0 Online 465 GB 1024 KB Read-only : No Hidden : No No Default Drive Letter: No Shadow Copy : No Offline : No BitLocker Encrypted : No Installable : Yes Volume Capacity : 465 GB Volume Free Space : 465 GB
And also what MBRFix says:
D:\>mbrfix64 /drive 0 driveinfo Drive 0 Cylinders = 60801 Tracks (heads) per cylinder = 255 Sectors per track = 63 Bytes per sector = 512 Disk size = 500105249280 (Bytes) = 465 (GB) D:\>mbrfix64 /drive 0 listpartitions # Boot Size (MB) Type 1 Yes 476937 12 WIN95 OSR2 32-bit FAT, LBA-mapped D:\>mbrfix64 /drive 0 /partition 1 getpartitiontype 12
So shut down the client, plug in the testing drive, boot back into WinPE. I made a custom Diskpart script to run to format the
drive:
sel disk 0 clean create part pri size=31000 sel part 1 active format fs=ntfs label="LocalDisk" quick assign letter=c exit
Run Diskpart, apply the image with Imagex. Compare the disk information now.
DISKPART> detail disk Disk ID: 3F5598B3 Type : SATA Status : Online Path : 0 Target : 0 LUN ID : 0 Location Path : PCIROOT(0)#PCI(1F02)#ATA(C00T00L00) Current Read-only State : No Read-only : No Boot Disk : No Pagefile Disk : No Hibernation File Disk : No Crashdump Disk : No Clustered Disk : No Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 C LOCALDISK FAT32 Partition 30 GB Healthy DISKPART> detail part Partition 1 Type : 0C Hidden: No Active: Yes Offset in Bytes: 1048576 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 0 C LOCALDISK FAT32 Partition 30 GB Healthy DISKPART> detail vol Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- * Disk 0 Online 55 GB 25 GB Read-only : No Hidden : No No Default Drive Letter: No Shadow Copy : No Offline : No BitLocker Encrypted : No Installable : Yes Volume Capacity : 30 GB Volume Free Space : 30 GB
And MBrfix:
D:\>mbrfix64 /drive 0 driveinfo Drive 0 Cylinders = 7296 Tracks (heads) per cylinder = 255 Sectors per track = 63 Bytes per sector = 512 Disk size = 60011642880 (Bytes) = 55 (GB) D:\>mbrfix64 /drive 0 listpartitions # Boot Size (MB) Type 1 Yes 31000 12 WIN95 OSR2 32-bit FAT, LBA-mapped D:\>mbrfix64 /drive 0 /partition 1 getpartitiontype 12
And time for a reboot... but it boots to: "Remove disks or other media. Press any key to restart."
And to compare, all the volume information matches, except for the obvious difference in the two different hard disks.
I shall entertain ideas about how to make this disk bootable...



Help
Back to top












