[syslinux] Install gptmbr with Windows
poma
pomidorabelisima at gmail.com
Thu Aug 4 02:41:21 PDT 2016
On 04.08.2016 00:58, Erik Sandberg via Syslinux wrote:
> Does anyone know how to install the gptmbr.bin onto a USB drive with
> Windows? I noticed that it would be really easy to modify the source of the
> installer to install gptmbr.bin instead of mbr.bin with the -m flag, but
> I'd like a solution that doesn't require me to maintain my own custom
> syslinux. I'm open to writing and submitting a patch to add a new flag (say
> -g) to install gptmbr.bin but I'd really like a solution that's more like
> running `cat gptmbr.bin > /dev/sdb` but on Windows.
>
> - Erik Sandberg
>
When you offer to patch, why not cover both - PE32 and ELF, MBR and GPT
$ wine64 /usr/share/syslinux/syslinux64.exe /?
Usage: Z:\usr\share\syslinux\syslinux64.exe [options] <drive>: [bootsecfile]
--directory -d Directory for installation target
--install -i Install over the current bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... -o Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxiliary data
--menu-save= -M Set the label to select as default on the next boot
--mbr -m Install an MBR
--active -a Mark partition as active
--force -f Ignore precautions
$ /usr/bin/syslinux --help
Usage: /usr/bin/syslinux [options] device
--offset -t Offset of the file system on the device
--directory -d Directory for installation target
--install -i Install over the current bootsector
--update -U Update a previous installation
--zip -z Force zipdrive geometry (-H 64 -S 32)
--sectors=# -S Force the number of sectors per track
--heads=# -H Force number of heads
--stupid -s Slow, safe and stupid mode
--raid -r Fall back to the next device on boot failure
--once=... Execute a command once upon boot
--clear-once -O Clear the boot-once command
--reset-adv Reset auxiliary data
--menu-save= -M Set the label to select as default on the next boot
--force -f Ignore precautions
More information about the Syslinux
mailing list