paperlined.org
sysadmin > boot > usb-resident > many_partitions
document updated 13 years ago, on Apr 16, 2011
THIS IS NON-OBVIOUS, I haven't seen it documented elsewhere.

This is the method that I use to "choose" among many different partitions, and have the bootloader rewrite the MBR before it boots into something.

If you set up the USB drive for GPT partition, then many OS's won't recognize that.

This is actually a GOOD thing.

This is because GRUB2 has a very special command: gptsync. This command is used to write changes to the shadow-MBR, before booting to a boot option.

That's right, you can have a totally custom MBR for each boot option!

An example of using the gptsync command: