Description of problem: mkdosfs, and no other programs I was able to locate currently allow you to write boot code to a FAT partition. This patch will add an option "-B" that points to a dump of the first sector of the partition for FAT16 or the first 13 sectors for FAT32 (some of the bootcode is farther in) It also corrects the layout of the structure to match the whitepaper from M$ Version-Release number of selected component (if applicable): 2.9 Steps to Reproduce: save bootcode from a bootable fat32 partition (NT, 2000, Win95 etc) - dd if=/dev/hda1 of=f32.bs bs=512 count=13 create a new bootable partition: mkdosfs -F 32 -B f32.bs /dev/hda1 Note, this still requires somehow writing the MBR, which is easily done with dd like so: save: dd if=/dev/hda of=DOSMBR bs=512 count=1 write: dd if=DOSMBR of=/dev/hda bs=446 count=1 ; dd if=DOSMBR of=/dev/hda bs=2 skip=255 seek=255 The second dd is needed to write the bootable drive flag to the MBR
Created attachment 101554 [details] Add option to save custom bootcode
Comment on attachment 101554 [details] Add option to save custom bootcode Attached wrong file, sorry
Created attachment 101555 [details] Add option to allow creationg of bootable partitions based on template bootcode
I 2nd Sam's RFE. We really need bootable dos partitions here.
Fedora Core 2 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match.
Closed per above message and lack of response. Note that FC2 is not even supported by Fedora Legacy currently.
When I posted this FC2 was current. There was no lack of feedback, since there was no request for data. If you want to ignore it, I'll just keep patching my own code when necessary and maybe somebody will be able to find this when they need it. Great system you have here.