Walkthrough 1


The test system was set up with two Windows XP installations -

Firadisk will be used to create and mount the disk image and the Windows Disk Management console will create MBR and partition entries. The only other tool required for this method is Devcon (see here).

  1. Boot the Windows XP installation on (hd0,1) and follow the instructions here to reduce the size of the Windows installation for copying (install firadisk, remove pagefile, disable system restore and hibernation).
  2. Reboot the computer and boot the XP installation on (hd0,0).
  3. Assuming device (hd0,1), the Windows XP installation being copied, is mounted as drive D: - delete all files in the D:\Windows\System32\dllcache\ folder.
  4. Install the firadisk driver using devcon -
    devcon install firadisk.inf root\firadisk
  5. Use the following script to create and mount a 1 GB disk image (adjust the parameters to suit your own needs) -
  6. Right-click on the disk in the bottom pane of the Disk Management console > select Initialize Disk > and click on the Ok button
  7. Partition the disk image and create a MBR. Right-click on the disk in the disk management window and select New Partition... to open the New Partition Wizard -
  8. Mark the partition as active by right-clicking on the partition in the disk management window and select Mark Partition as Active, then close the Disk Management window
  9. Use the following script to copy the XP installation from (hd0,1) to the mounted disk image (this assumes that (hd0,1) is mounted as drive D: and the disk image is mounted as drive R: - adjust the parameters to suit your own needs). Note - an exclusion file is automatically created when running the batch file -
  10. Load the SYSTEM registry hive in the mounted disk image as HKLM\firadisk using the following command -
    reg load HKLM\firadisk R:\windows\system32\config\system
  11. Delete the HKLM\firadisk\MountedDevices key using the following command -
    reg delete HKLM\firadisk\MountedDevices /f
  12. Unload the disk image SYSTEM registry hive using the following command -
    reg unload HKLM\firadisk
  13. Open boot.ini and edit the paths to ensure that multi(0)disk(0)rdisk(0)partition(1) is used
  14. Disable firadisk to unmount the disk image using command -
    devcon disable root\firadisk
  15. Add an entry to C:\menu.lst entry -

On the test system Windows XP booted successfully from the disk image. The booted disk image was allocated the C: drive letter, (hd0,0) was mounted as drive D: and (hd0,1) was mounted as drive E:.