Skip to content

[boot] Fix bad MBR partition generated by setboot#2084

Merged
ghaerr merged 1 commit intomasterfrom
mbr
Oct 21, 2024
Merged

[boot] Fix bad MBR partition generated by setboot#2084
ghaerr merged 1 commit intomasterfrom
mbr

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Oct 21, 2024

Corrects improper end cylinder number and partition size for hd32mbr-minix.img and hd32mbr-fat.img images. This resulted in an extra cylinder being used for the partition as well as calculating the partition size incorrectly, which would result in writing off the end of the partition, a major bug.

Also fixes fdisk to accept only the correct start and end cylinder numbers, courtesy of @Mellvik's fix Mellvik/TLVC#93.

Here's the corrected setboot (and fdisk) output for the HD32 images with CHS 63/16/63. Note the correct 32MB disk size is 63441 sectors (instead of the previous 63504):
hd32mbr fdisk

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

Successfully merging this pull request may close these issues.

1 participant