oneohthree / bootify

Bash script to make USB drives bootables with Windows 7/8/8.1/10 installation files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syslinux

JonnyTech opened this issue · comments

Can the following be replaced by syslinux:

BTS="res/bootstrap"
dd if=$BTS of=$DEV > /dev/null 2>&1 || { echo "Error injecting bootstrap" 1>&2; exit 1; }

Example command:

dd if=/usr/lib/extlinux/mbr.bin of=/dev/sda bs=440 count=1

That will just rely on the script rather than also having a binary file included.

Sorry to be VERY late. I like this approach, but we have to rely on mbr.bin file which could have different locations among popular Linux distributions.

Solved in 5222bb1 no need for syslinux.

Nice self contained solution, although horrible to edit!

I agree, but I think this is better than having the file included.