PHP Code:
C:\WINDOWS\system32>mbr2gpt /allowfullos /validate /disk:0
MBR2GPT: Attempting to validate disk 0
MBR2GPT: Retrieving layout of disk
MBR2GPT: Validating layout, disk sector size is: 512 bytes
Cannot find OS partition(s) for disk 0
C:\WINDOWS\system32>mbr2gpt /allowfullos /validate /disk:1
MBR2GPT: Attempting to validate disk 1
MBR2GPT: Retrieving layout of disk
MBR2GPT: Validating layout, disk sector size is: 512 bytes
Disk layout validation failed for disk 1
C:\WINDOWS\system32>type ..\setupact.log
< for disk 0... >
2018-03-20 12:56:12, Info MBR2GPT was explicitly asked to run in full OS mode.
2018-03-20 12:56:12, Info MBR2GPT: System disk number is 0
2018-03-20 12:56:12, Info MBR2GPT: Attempting to validate disk 0
2018-03-20 12:56:12, Info MBR2GPT: Retrieving layout of disk
2018-03-20 12:56:12, Info MBR2GPT: Initial partition information
2018-03-20 12:56:12, Info ===========================================================
2018-03-20 12:56:12, Info Partition layout for disk: 0
2018-03-20 12:56:12, Info Partition style : MBR
2018-03-20 12:56:12, Info MBR signature: 555597164
2018-03-20 12:56:12, Info Number of partitions : 2
2018-03-20 12:56:12, Info ===================PARTITION===============================
2018-03-20 12:56:12, Info Number: 1
2018-03-20 12:56:12, Info Type: 7
2018-03-20 12:56:12, Info Boot: Yes
2018-03-20 12:56:12, Info Recognized: Yes
2018-03-20 12:56:12, Info Style: 0
2018-03-20 12:56:12, Info Offset: 1048576
2018-03-20 12:56:12, Info Length: 104857600
2018-03-20 12:56:12, Info Volume: \\?\Volume{5e494090-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:12, Info Drive: None
2018-03-20 12:56:12, Info NT Path: \Device\HardDisk0\Partition1
2018-03-20 12:56:12, Info ===================PARTITION===============================
2018-03-20 12:56:12, Info Number: 2
2018-03-20 12:56:12, Info Type: 7
2018-03-20 12:56:12, Info Boot: No
2018-03-20 12:56:12, Info Recognized: Yes
2018-03-20 12:56:12, Info Style: 0
2018-03-20 12:56:12, Info Offset: 105906176
2018-03-20 12:56:12, Info Length: 500000882688
2018-03-20 12:56:12, Info Volume: \\?\Volume{5e494091-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:12, Info Drive: D:\
2018-03-20 12:56:12, Info NT Path: \Device\HardDisk0\Partition2
2018-03-20 12:56:12, Info ===========================================================
2018-03-20 12:56:12, Info ESP partition size will be 104857600
2018-03-20 12:56:12, Info MBR2GPT: Validating layout, disk sector size is: 512 bytes
2018-03-20 12:56:12, Info BCD: Opening store. Flags: 0x0
2018-03-20 12:56:12, Info BCD: Store path: "\??\GLOBALROOT\device\harddisk0\partition1\Boot\BCD"
2018-03-20 12:56:12, Info BCD: Loaded hive at BCD00000000
2018-03-20 12:56:12, Info BCD: Opening object {9dea862c-5cdd-4e70-acc1-f32b344d4795}
2018-03-20 12:56:12, Info FindOSPartitions: Default boot entry: {455E0EEC-DECE-11E7-B5B4-EACDE0BAAC5
6}
2018-03-20 12:56:12, Info BCD: Opening object {455e0eec-dece-11e7-b5b4-eacde0baac56}
2018-03-20 12:56:12, Info VERBOSE: Device path: \Device\HarddiskVolume3
2018-03-20 12:56:12, Info VERBOSE: Dos path: \\?\GLOBALROOT\Device\HarddiskVolume3
2018-03-20 12:56:12, Info FindOSPartitions: Volume name for the default boot entry: \\?\Volume{5e494
092-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:12, Info BCD: Opening object {a0455270-dece-11e7-b5b4-eacde0baac56}
2018-03-20 12:56:12, Info VERBOSE: Device path: \Device\HarddiskVolume4
2018-03-20 12:56:12, Info VERBOSE: Dos path: \\?\GLOBALROOT\Device\HarddiskVolume4
2018-03-20 12:56:12, Info FindOSPartitions: Volume name for the recovery boot entry: \\?\Volume{f68c
1638-0000-0000-0000-801c3a000000}\
2018-03-20 12:56:12, Info FindOSPartitions: WIM path for the recovery boot entry: \Recovery\WindowsR
E\Winre.wim
2018-03-20 12:56:12, Info FindOSPartitions: Default boot entry locale: en-US
2018-03-20 12:56:12, Error Cannot find OS partition(s) for disk 0
2018-03-20 12:56:19, Info MBR2GPT was explicitly asked to run in full OS mode.
2018-03-20 12:56:19, Info MBR2GPT: Attempting to validate disk 0
2018-03-20 12:56:19, Info MBR2GPT: Retrieving layout of disk
2018-03-20 12:56:19, Info MBR2GPT: Initial partition information
2018-03-20 12:56:19, Info ===========================================================
2018-03-20 12:56:19, Info Partition layout for disk: 0
2018-03-20 12:56:19, Info Partition style : MBR
2018-03-20 12:56:19, Info MBR signature: 555597164
2018-03-20 12:56:19, Info Number of partitions : 2
2018-03-20 12:56:19, Info ===================PARTITION===============================
2018-03-20 12:56:19, Info Number: 1
2018-03-20 12:56:19, Info Type: 7
2018-03-20 12:56:19, Info Boot: Yes
2018-03-20 12:56:19, Info Recognized: Yes
2018-03-20 12:56:19, Info Style: 0
2018-03-20 12:56:19, Info Offset: 1048576
2018-03-20 12:56:19, Info Length: 104857600
2018-03-20 12:56:19, Info Volume: \\?\Volume{5e494090-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:19, Info Drive: None
2018-03-20 12:56:19, Info NT Path: \Device\HardDisk0\Partition1
2018-03-20 12:56:19, Info ===================PARTITION===============================
2018-03-20 12:56:19, Info Number: 2
2018-03-20 12:56:19, Info Type: 7
2018-03-20 12:56:19, Info Boot: No
2018-03-20 12:56:19, Info Recognized: Yes
2018-03-20 12:56:19, Info Style: 0
2018-03-20 12:56:19, Info Offset: 105906176
2018-03-20 12:56:19, Info Length: 500000882688
2018-03-20 12:56:19, Info Volume: \\?\Volume{5e494091-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:19, Info Drive: D:\
2018-03-20 12:56:19, Info NT Path: \Device\HardDisk0\Partition2
2018-03-20 12:56:19, Info ===========================================================
2018-03-20 12:56:19, Info ESP partition size will be 104857600
2018-03-20 12:56:19, Info MBR2GPT: Validating layout, disk sector size is: 512 bytes
2018-03-20 12:56:19, Info BCD: Opening store. Flags: 0x0
2018-03-20 12:56:19, Info BCD: Store path: "\??\GLOBALROOT\device\harddisk0\partition1\Boot\BCD"
2018-03-20 12:56:19, Info BCD: Loaded hive at BCD00000000
2018-03-20 12:56:19, Info BCD: Opening object {9dea862c-5cdd-4e70-acc1-f32b344d4795}
2018-03-20 12:56:19, Info FindOSPartitions: Default boot entry: {455E0EEC-DECE-11E7-B5B4-EACDE0BAAC5
6}
2018-03-20 12:56:19, Info BCD: Opening object {455e0eec-dece-11e7-b5b4-eacde0baac56}
2018-03-20 12:56:19, Info VERBOSE: Device path: \Device\HarddiskVolume3
2018-03-20 12:56:19, Info VERBOSE: Dos path: \\?\GLOBALROOT\Device\HarddiskVolume3
2018-03-20 12:56:19, Info FindOSPartitions: Volume name for the default boot entry: \\?\Volume{5e494
092-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:19, Info BCD: Opening object {a0455270-dece-11e7-b5b4-eacde0baac56}
2018-03-20 12:56:19, Info VERBOSE: Device path: \Device\HarddiskVolume4
2018-03-20 12:56:19, Info VERBOSE: Dos path: \\?\GLOBALROOT\Device\HarddiskVolume4
2018-03-20 12:56:19, Info FindOSPartitions: Volume name for the recovery boot entry: \\?\Volume{f68c
1638-0000-0000-0000-801c3a000000}\
2018-03-20 12:56:19, Info FindOSPartitions: WIM path for the recovery boot entry: \Recovery\WindowsR
E\Winre.wim
2018-03-20 12:56:19, Info FindOSPartitions: Default boot entry locale: en-US
2018-03-20 12:56:19, Error Cannot find OS partition(s) for disk 0
< for disk 1... >
2018-03-20 12:56:24, Info MBR2GPT was explicitly asked to run in full OS mode.
2018-03-20 12:56:24, Info MBR2GPT: Attempting to validate disk 1
2018-03-20 12:56:24, Info MBR2GPT: Retrieving layout of disk
2018-03-20 12:56:24, Info MBR2GPT: Initial partition information
2018-03-20 12:56:24, Info ===========================================================
2018-03-20 12:56:24, Info Partition layout for disk: 1
2018-03-20 12:56:24, Info Partition style : MBR
2018-03-20 12:56:24, Info MBR signature: 4136375864
2018-03-20 12:56:24, Info Number of partitions : 2
2018-03-20 12:56:24, Info ===================PARTITION===============================
2018-03-20 12:56:24, Info Number: 1
2018-03-20 12:56:24, Info Type: 7
2018-03-20 12:56:24, Info Boot: No
2018-03-20 12:56:24, Info Recognized: Yes
2018-03-20 12:56:24, Info Style: 0
2018-03-20 12:56:24, Info Offset: 1048576
2018-03-20 12:56:24, Info Length: 249585205248
2018-03-20 12:56:24, Info Volume: \\?\Volume{5e494092-47af-11e5-88cf-806e6f6e6963}\
2018-03-20 12:56:24, Info Drive: C:\
2018-03-20 12:56:24, Info NT Path: \Device\HardDisk1\Partition1
2018-03-20 12:56:24, Info ===================PARTITION===============================
2018-03-20 12:56:24, Info Number: 2
2018-03-20 12:56:24, Info Type: 39
2018-03-20 12:56:24, Info Boot: No
2018-03-20 12:56:24, Info Recognized: Yes
2018-03-20 12:56:24, Info Style: 0
2018-03-20 12:56:24, Info Offset: 249586253824
2018-03-20 12:56:24, Info Length: 471859200
2018-03-20 12:56:24, Info Volume: \\?\Volume{f68c1638-0000-0000-0000-801c3a000000}\
2018-03-20 12:56:24, Info Drive: None
2018-03-20 12:56:24, Info NT Path: \Device\HardDisk1\Partition2
2018-03-20 12:56:24, Info ===========================================================
2018-03-20 12:56:24, Info ESP partition size will be 104857600
2018-03-20 12:56:24, Info MBR2GPT: Validating layout, disk sector size is: 512 bytes
2018-03-20 12:56:24, Error ValidateLayout: Wrong boot partition count, expected 1 but found 0.
2018-03-20 12:56:24, Error Disk layout validation failed for disk 1
C:\WINDOWS\system32>type ..\setuperr.log
2018-03-20 12:56:12, Error Cannot find OS partition(s) for disk 0
2018-03-20 12:56:19, Error Cannot find OS partition(s) for disk 0
2018-03-20 12:56:24, Error ValidateLayout: Wrong boot partition count, expected 1 but found 0.
2018-03-20 12:56:24, Error Disk layout validation failed for disk 1