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

Formatting FAT FS with offset past 2 GiB #6

Closed
edahlseng opened this issue Aug 5, 2015 · 3 comments
Closed

Formatting FAT FS with offset past 2 GiB #6

edahlseng opened this issue Aug 5, 2015 · 3 comments

Comments

@edahlseng
Copy link
Contributor

When running the fat_mkfs command to attempt to create a FAT filesystem in a FAT 32 partition, there is an error whenever the offset is exactly 2 GiB or greater. This error seems to be independent of the size of the partition, and only depends on the offset. The error is: A hard error occurred in the low level disk I/O layer.

@fhunleth
Copy link
Collaborator

fhunleth commented Aug 5, 2015

I haven't tested sizes that large, but it really sounds like I have 32-bit ints where I should have 64-bit ones. I'm pretty sure that I enabled the large file size options on the 3rd party fatfs code, but I'll have to verify and that my code is right. I'm currently very busy on a work project, but will try to get to this in the next few weeks. If you happen to figure it out before then, please send a patch and I'll try to integrate it right away.

@edahlseng
Copy link
Contributor Author

Thanks for the quick response! I'll try to figure out a patch if I can, and will keep you updated.

@fhunleth
Copy link
Collaborator

Closing this issue thanks to your patch.

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