How to change FAT32 sort order on drive?

You might want to use fatsort which is available in Ubuntu and was designed to solve your exact problem. Cheers,


fatsort solves the problem. First install fatsort then, list partitions in order to get the usb key device path

cat /proc/partitions

Let's take /dev/sde1 as an example.

Finally

sudo fatsort -f /dev/sde1

problem solved, without wine nor windows ;-)


Your best bet is to use DriveSort under Wine, as its author recommends

To quote DriveSort's author, the program is "tightly bound to Microsoft APIs", so I doubt you will find a native Linux equivalent where a non-native filesystem (FAT) is concerned.

You can run it under Wine as the author has tried and recommended, with some caveats:

  • You must run it with gksudo
  • You will need mfc42u.dll, which you can install in the same directory from the internet (google), or install it using the winetricks package.
  • Once sorting is completed, DriveSort attempts to unmount/remount the drive; remounting doesn't succeed in Wine, so you can either safely pull out the USB for use, or manually remount it.