Skip to content

[cmds] Update mkfat table to use cluster size 2 for 32MB hard drive#2395

Merged
ghaerr merged 2 commits intomasterfrom
mkfat
Oct 11, 2025
Merged

[cmds] Update mkfat table to use cluster size 2 for 32MB hard drive#2395
ghaerr merged 2 commits intomasterfrom
mkfat

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Oct 11, 2025

ELKS mkfat was creating 64MB FAT images using a cluster size of 4, rather than 2, which the host mformat command uses.

This change allows mkfat to be used within ELKS with very similar results to the hostmformat (the exception being that mkfat creates a FAT table 1 sector larger, for reasons unknown).

To create a 32MB hard drive image with the same size as created by the ELKS build, use mkfat /dev/hda1 31752.

@ghaerr ghaerr merged commit d4fd546 into master Oct 11, 2025
1 check passed
@ghaerr ghaerr deleted the mkfat branch October 11, 2025 01:23
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