Image File Fragmentation - BlueSCSI/BlueSCSI-v2 GitHub Wiki

What?

If the image file on your SD card is fragmented it can impact the performance.

You will see a warning:

 - file is fragmented, see https://github.com/BlueSCSI/BlueSCSI-v2/wiki/Image-File-Fragmentation

which leads you to this page.

Solution

Copy files

  • Copy all files off your SD Card.
  • Delete all files off the SD card or do a Full format of the card
  • Copy all the files over to your SD Card one at a time.
  • The files should no longer be fragmented on the SD card.

Mac OS

  • Exclude the SD Card from Spotlight
    • System Settings -> Siri & Spotlight -> Spotlight Privacy...
    • Exclude the SD Card
  • Disable .DS_Store creation on removable drives
    • Open Terminal
    • Run defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Defrag (Windows)

  • Use a defrag utility like Defraggler to defrag the image file on the SD card.

Technical details

https://github.com/greiman/SdFat/issues/256#issuecomment-778795554