syslinux on usb key

11 November 2017 config

steps to install syslinux to an usb key. shown here is how to boot memtest.

this assumes $device being the device and $partition being the partition to install syslinux files onto. for example device=/dev/sdx and partition=/dev/sdx1

  1. create a partition on the usb key and mark it bootable.
  2. create a new supported filesystem in this partition. as this is a usb key, vfat seems to be the best option, so: mkdosfs $partition
  3. install syslinux MBR: dd conv=notrunc bs=440 count=1 if=mbr.bin of=$device
  4. install syslinux: syslinux -i $partition
  5. copy the memtest64+ binary, i renamed it to memtest.bin as syslinux seemed to have issues with all the characters. or the fat. or whatever. after renaming it worked.
  6. create $partition/syslinux.cfg (or $partition/syslinux/syslinux.cfg or $partition/boot/syslinux/syslinux.cfg) containing the configuration:
    DEFAULT mylabel
    LABEL mylabel
    LINUX memtest.bin