For some debugging purposes, I'd like to be able to manually set the dirty bit of a FAT32 partition to true.
I found tons of information on how to use fsck.vfat to remove the dirty bit, but none on how to set it.
It's possible, since mount does it. When a FAT32 partition (where dirty is false) is mounted, then mount sets dirty to true (and umount sets it to false again).
I'm looking for a way to set the dirty bit without mounting the partition, i.e., simulating that it was not cleanly unmounted.