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

fsck.fat: Check for DOS Clean Shutdown bit #100

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

pali
Copy link
Member

@pali pali commented Sep 27, 2018

DOS Clean Shutdown bit in first reserved FAT entry is cleared when DOS or
Windows FAT driver mounts a volume and set is back when doing unmount.
Therefore set this bit when clearing FAT dirty bit in boot sector.

Fixes: #38

@jnuyens
Copy link

jnuyens commented May 23, 2019

Please merge this important missing feature - it has been 5 months now. Downstream users need this as Windows 10 no longer sets and removes this bit, but still detects it and presents users with a 'please repair' dialog which fsck.vfat can't even repair...

If you don't have time enough to manage this project, hand it over to someone who contributes a lot; in good OpenSource fashion. Thanks!

DOS Clean Shutdown bit in first reserved FAT entry is cleared when DOS or
Windows FAT driver mounts a volume and set is back when doing unmount.
Therefore set this bit when clearing FAT dirty bit in boot sector.
@pali pali merged commit 69fcfe5 into dosfstools:master Jan 3, 2021
@pali pali deleted the clean-shutdown-bit branch January 3, 2021 20:29
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.

Usage of "Dirty Bit" does not meet FAT specification
2 participants