First I have used the interactive gdisk32.exe tool instead of sgdisk to mark the partition bootable.
gdisk32.exe \\.\physicaldrive3 x a 1 2 w
GPT fdisk (gdisk) version 1.0.4 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): x Expert command (? for help): a Using 1 Known attributes are: 0: system partition 1: hide from EFI 2: legacy BIOS bootable 60: read-only 62: hidden 63: do not automount Attribute value is 0000000000000000. Set fields are: No fields set Toggle which attribute field (0-63, 64 or <Enter> to exit): 2 Have enabled the 'legacy BIOS bootable' attribute. Attribute value is 0000000000000004. Set fields are: 2 (legacy BIOS bootable) Toggle which attribute field (0-63, 64 or <Enter> to exit): Expert command (? for help): w Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to \\.\physicaldrive3. Disk synchronization succeeded! The computer should now use the new partition table. The operation has completed successfully. Press any key to continue . . .
then installed syslinux using
syslinux.exe --mbr --active --directory /boot/syslinux/ --install G:
Syslinux installed successfully in GPT Disk but Why this command does not give any successful message in cmd ?
Write gptmbr.bin to MBR of GPTdisk as follows.
dsfo \\.\Physicaldrive3 0 512 GPTMBR.mbr dsfi GPTMBR.mbr 0 440 gptmbr.bin dsfi \\.\Physicaldrive3 0 512 GPTMBR.mbr
C:\Users\DEv\Desktop\AIO>echo.Installing Syslinux... Installing Syslinux... C:\Users\DEv\Desktop\AIO>syslinux.exe --mbr --active --directory /boot/syslinux/ --install G: C:\Users\DEv\Desktop\AIO>ECHO Writing the special MBR ... Writing the special MBR ... C:\Users\DEv\Desktop\AIO>IF EXIST GPTMBR.mbr DEL GPTMBR.mbr C:\Users\DEv\Desktop\AIO>dsfo \\.\Physicaldrive3 0 512 GPTMBR.mbr OK, 512 bytes, 0.000s, MD5 = 2de3c0115d9de259bd986de75a184042 C:\Users\DEv\Desktop\AIO>dsfi GPTMBR.mbr 0 440 gptmbr.bin OK, written 440 bytes at offset 0 C:\Users\DEv\Desktop\AIO>dsfi \\.\Physicaldrive3 0 512 GPTMBR.mbr OK, written 512 bytes at offset 0
G:\boot\syslinux\syslinux.cfg
default grub4dos LABEL grub4dos MENU LABEL Grub4dos BOOT /AIO/Tools/grub4dos/grldr
http://www.lightofda...cgi/BIOSBootGPT
https://mjg59.dreamwidth.org/8035.html
1. Start fdisk on the disk (fdisk /dev/sda) and ignore the warnings. 2. Type "a" to toggle the bootable flag, and choose "1" for the partition to enable. We choose partition "1", not "3", because now we are talking about the protective MBR (that fdisk sees); and there is only one partition there - the protective partition. 3. Save your work by typing "w".
$ fdisk /dev/sda Command (m for help): a Partition number (1-X): 1 Command (m for help): w
I know we can use fdisk under Linux to set the protective MBR partition as active.
Can we not use DOS FDISK in order to to mark the protective MBR of GPT Disk as bootable from Windows ?
Any windows tool capable of doing the same what old fdisk of linux do ?
Regards...