I have an SD card, and I would like to make the files on it consecutive in the flash memory itself (so there are no gaps in between). However, I understand that such a process could use an unnecessary large number of RW cycles, so I would like to perform it on an disk image of the card and then send the image back to the card. Are there any tools that would allow me to edit the file table in such a manner? (It must support FAT)
P.S. It would be great if said tool also supported rearranging the files manually.
P.P.S. (thanks, Izzy) I would prefer it if this tool ran on Linux, and it would be best if it's open-source, as nobody compiles for ARM :-(, but I'm open to all suggestions as long as it runs on Linux.
EDIT: Removed GUI requirement!