Skip to content

fat: write a non-zero CHS geometry in the boot sector - #96

Open
samoht wants to merge 1 commit into
mirage:mainfrom
samoht:fat-nonzero-chs
Open

samoht wants to merge 1 commit into
mirage:mainfrom
samoht:fat-nonzero-chs

Conversation

@samoht

@samoht samoht commented Jun 25, 2026

Copy link
Copy Markdown
Member

marshal set sectors_per_track and heads to 0. Some int 0x13 and legacy tools reject a zero CHS geometry, so write the conventional 63 sectors/track and 255 heads (consistent with the existing 0xf8 fixed-disk media descriptor). The values are convention; the requirement is that they be non-zero.

marshal set sectors_per_track and heads to 0. Some int 0x13 and legacy tools reject a zero CHS geometry, so write the conventional 63 sectors/track and 255 heads (consistent with the existing 0xf8 fixed-disk media descriptor). The values are convention; the requirement is that they are non-zero.

This branch has not been deployed

No deployments
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