Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for bootcode #72

Open
pali opened this issue Nov 25, 2017 · 4 comments
Open

Patch for bootcode #72

pali opened this issue Nov 25, 2017 · 4 comments

Comments

@pali
Copy link
Member

pali commented Nov 25, 2017

Sam Bingner in 2003 wrote patch for mkdosfs which adds support for writing custom boot code to FAT boot sector: https://lists.debian.org/debian-devel/2003/06/msg01316.html

This patch was included into Debian version 2.11-5 of mkdosfs, but reverted in 2.11-6 as it cause problems for syslinux. Daniel Baumann wrote that proper fix would be later. See bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489292

Apparently Sam Bingner's patch was never fixed and never entered into upstream dosfstools.

It would be nice to have boot code support in mkfs.fat. I suspect that problem reported in above bug is because bs.hidden needs to be set to bs.secs_track only if using external boot code.

@luzemario
Copy link

So, including FreeDOS/SvarDOS bootcode is not an option?

@pali
Copy link
Member Author

pali commented Apr 9, 2022

@luzemario: Has FreeDOS/SvarDOS patch for dosfstools's mkfs.fat which can add custom boot code to FAT boot sector?

@luzemario
Copy link

luzemario commented Apr 9, 2022 via email

@pali
Copy link
Member Author

pali commented Apr 9, 2022

No. I mean to put FreeDOS/SvarDOS bootsector verbatim on the disk

And obviously this cannot be done due to this open issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants