exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
If Disk Utility is unable to repair, consider trying this:
- In Disk Utility, ensure that the drive is not mounted, eject it if it is mounted.
- Use
diskutil listto find the right drive id. - You want the id under the IDENTIFIER column, it should look like
disk1s1 - Run
sudo fsck_exfat -d <id from above>. egsudo fsck_exfat -d disk1s3 -dis debug so you'll see all your files output as they're processed.
These tricks require BibTool, which can be installed using homebrew.
To extract only the used fields call bibtool -x on a .aux file, e.g.
bibtool -x doc.aux -o output.bibTo delete fields that you don't want to share, e.g. notes and file locations,
bibtool -- "delete.field {annote}" -i input.bib -o output.bibInstall convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .