[syslinux] Install gptmbr with Windows

Erik Sandberg erik at repairtechsolutions.com
Thu Aug 4 11:00:50 PDT 2016


Oh somehow I never noticed that "bootsecfile" option. That's probably what
I need to use. I was looking at the source to see how the --mbr flag works
and thought that there should be a way to do the same thing with the other
mbr files.

On Thu, Aug 4, 2016 at 2:41 AM poma <pomidorabelisima at gmail.com> wrote:

> 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