Hi Tom,
Thank you very much for your answer. I will try to answer your questions. I did not have to much time to debug this situation.
“Does the table recognize GPT information?”
Yes.
“Does the d1.mbr file size equal 32256 bytes or 512 bytes?”
The size of d1.mbr is 17920.
I restored it with sgdisk but something strange happened. Just to be sure that everything is ok, I did a sgdisk -Z /dev/sda first to delete the GPT and MBR tables. Then I did a restore using sgdisk -l /images/d1.mbr /dev/sda. When I did a gdisk -l /dev/sda it showed no partitions. A read on a forum that before you restore you have to issue sgdisk -G /dev/sda. Apparently this command “Randomizes the disk’s GUID and all partitions’ unique GUIDs (but not their partition type code GUIDs). This function may be used after cloning a disk in order to render all GUIDs once again unique”. After I issued this command and did a restore again, all partitions were created on /dev/sda.
When I have a little more time I will continue debugging and post the results.
Thank you for your time.
Bogdan