[syslinux] syslinux write intended bootsector to bootsectorfile support?

Blaauw,Bernd B. B.Blaauw at student.fontys.nl
Tue Aug 17 10:59:12 PDT 2004


HPA,

is it possible to add a parameter/argument to syslinux.com/syslinux.exe to specify a file?
currently it's something like SYSLINUX A:
I'd like the following also to be possible:
SYSLINUX A: A:\SYSLINUX.BIN

It still copies LDLINUX.BIN to A:, but writes the generated bootsector intended for drive A: to a 512byte user-specified file
Perhaps to allow both at the same time even SYSLINUX A: A: A:\SYSLINUX.BIN could be possible

SYSLINUX [place-to-copy-ldlinux.bin-to] [place(s) where to put bootsector(file)]

I'm supporting 8086+ instead of 386+, so I need another bootloader (called MetaKern) before SYSLINUX. That other bootloader requires that I append bootsectors of the OSs I want to load: 1) Syslinux and 2) FreeDOS.

Currently I do:
SYSLINUX A: // write both LDLINUX.BIN and Syslinux bootsector to A:
COPYBS A: A:\SYSLINUX.BIN // obtain bootsectorfile from Syslinux bootsector
COPY /B METAKERN.BIN + SYSLINUX.BIN + FREEDOS.BIN A:\METAKERN.SYS //bootloader
SYS A: A: BOOTONLY /K METAKERN.SYS // point bootsector kernel string to menu
DEL A:\SYSLINUX.BIN //get rid of the bootsector again, it's now in MetaKern.

So it would perhaps be a nice addition if Syslinux could save bootsector to file without first requiring to write it to the diskette.

anyone using/creating FreeDOS and/or bootdisks from Linux:
Eric Auer made a PERL script which creates a bootsector for a target disk image or device. Might be usefull. Don't know if it's inspired on the SYSLINUX Linux-installer.
http://sourceforge.net/mailarchive/forum.php?thread_id=5339014&forum_id=36903

Bernd Blaauw


----------------------------------------------------------------
Op deze e-mail zijn de volgende voorwaarden van toepassing:

http://www.fontys.nl/disclaimer

The above disclaimer applies to this e-mail message.
----------------------------------------------------------------




More information about the Syslinux mailing list