Following are the prerequisites to restore disk image in a different computer
Steps to recover your operating system drive on dissimilar hardware:
Steps to create MBR / GPT partition:
To create MBR partition,
DISKPART>LIST DISK | Display’s list of disks available on the PC. |
DISKPART> SELECT DISK 0 | Where 0 is the hard disk where partition has to be created for restore operation. |
DISKPART> CLEAN | Performing clean command will wipe out entire hard disk. |
DISKPART> CONVERT MBR | Converts the disk to master boot record partition style. |
DISKPART>CREATE PARTITION PRIMARY SIZE=500 | Size in MB. [Get the MBR Size from the backup.ini, Provide extra size of 200 MB to create partition] Creates a partition of 500MB with partition as primary. Note: It is recommended to provide a size greater than the image size for MBR.img. |
DISKPART>FORMAT FS=NTFS QUICK | Formats the partition to NTFS file system. Make sure partition type is NTFS. |
DISKPART>ASSIGN LETTER=M | Assign drive letter to M. Drive letter can be assigned randomly. |
DISKPART>ACTIVE | Makes the partition active for booting. |
To create GPT partition,
DISKPART>LIST DISK | Display’s list of disks available on the PC |
DISKPART> SELECT DISK 0 | Where 0 is the hard disk where partition has to be created for restore operation |
DISKPART> CLEAN | Performing clean command will wipe out entire hard disk |
DISKPART> CONVERT GPT | Converts the disk to GUID partition table |
DISKPART> CREATE PARTITION EFI SIZE=500 | Size in MB. [Get the GPT Size from the backup.ini, Provide extra size of 200 MB to create partition] Creates a partition of 500MB. |
DISKPART > FORMAT FS=FAT32 QUICK | Formats the partition. Make sure partition type is FAT32. |
DISKPART > ASSIGN LETTER=M | Assign drive letter to M. Drive letter can be assigned randomly. |
Steps to create OS drive partition:
DISKPART> CREATE PARTITION PRIMARY SIZE=29649 | Get the size of OS Drive (in MB) from the backup.ini. Size should be equal to or greater than the original OS size in MB. |
DISKPART> FORMAT FS=NTFS QUICK | Formats the partition |
DISKPART> ASSIGN LETTER=H | Assign letter H. Letter can be assigned randomly. |
DISKPART> EXIT | Once all the disk part operations are completed, quit from disk part by command: EXIT |
Steps to restore the MBR / GPT image:
Example:
IDriveDiskImage.exe if=<gpt.img> iflag=coe of=<partition drive> bs=512 oflag=coe
IDriveDiskImage.exe if=<mbr.img> iflag=coe of=<partition drive> bs=512 oflag=coe
Steps to restore OS drive image:
Example:
$IDriveDiskImage.exe if="D:\IDriveDiskImage\WIN-IUP3S37CGAU\C\DiskImage[C].img" iflag=coe of=h: oflag=coe bs=4096 count=29355606052
*Get the Image size of operating system disk image from the "backup.ini"
Steps to get operating system to boot
After the MBR/GPT and Operating system disk image is restored to the respective partitions, run the chkdsk command from the command line.
Enter the drive letter, which has Operating system, restored from the command line.