Skip to content

Instantly share code, notes, and snippets.

@olivierlambert
Last active December 9, 2015 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivierlambert/8b1a5b8b4cd3e8cb1c81 to your computer and use it in GitHub Desktop.
Save olivierlambert/8b1a5b8b4cd3e8cb1c81 to your computer and use it in GitHub Desktop.
FAT stuff

FAT stuff

  1. dd if=/dev/zero of=test.img bs=1M count=10 (image generation of 10MB file)
  2. mkfs.fat test.img (create filesystem inside)
  3. head -c 512 test.img exctract the first 512 bytes

TODO

  • create a buffer of 10MB
  • prepend the rest of the data (files etc.) using Fatfs
  • profit

Initial advice: natevw/fatfs#21 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment