extfat utils is a utility to manipulate extfat images.
-i xxx where xxx is the input file name [This is optional, but -i test.image is implied if not specified] -o xxx where xxx is the output file name [This is optional, inputFile will be used if not specified] -c triggers the copying of input to output (This is optional) -m use mmap for file access. [implied if -f and -m not specified] -f use fread for file access -v verify exfat image -h is this help message -d print root directory structure -x xxx where xxx is the file to be extracted
extfat -c -i inputFile.image -o outputFile.image extfat -c -f -i inputFile.image -o outputFile.image extfat -v -f -i inputFile.image extfat -v -i inputFile.image extfat -d -i inputFile.image extfat -x extractFile.image -i inputFile.image -o outputFile.image
% make clean
% make
To run the tests
% make tests
There is a directory of examples. They are compiled by default using the makefile Before you can run the example programs, you need to have an file image.
% bash /examples/create_image.bash
% ./examples/fread
% ./examples/mmap
dd if=/dev/zero of=zzz count=1 bs=1G
yum install -y exfat-utils fuse fuse-exfat
losetup /dev/loop0 diskimage
mount /dev/loop0 /mnt
umount /mnt
https://pawitp.medium.com/notes-on-exfat-and-reliability-d2f194d394c2
https://learn.microsoft.com/en-gb/windows/win32/fileio/exfat-specification
https://uta.service-now.com/selfservice?id=ss_kb_article&sys_id=KB0011414
https://nemequ.github.io/munit/#download
https://www.gnu.org/software/libc/manual/html_node/Example-of-Getopt.html
https://www.freecodecamp.org/news/how-to-use-git-and-github-in-a-team-like-a-pro/