FATSort - FAT filesystem sorting utility
fatsort [options] device
FATsort sorts directory structures of FAT filesystems. Many MP3
hardware players don’t sort files automatically but play them in the
order they were transmitted to the device. FATSort can help here.
-c This option causes FATSort to ignore the case of filenames (e.g.
’example.mp3’ is equal to ’EXAMPLE.MP3’).
-f Force sorting even if the device is mounted or if FATSort cannot
determine if the device is mounted.
-h Shows some help information.
-i Prints some file system information of the specified device.
-l FATsort will not sort directory structures, but just print the
This options specifies how FATSort will sort files and
directories. type can be ’d’ for directories before files
(which is the default), ’f’ for files before directories, or ’a’
for no differentiation between files and directories.
-n Uses natural order to sort directory structures instead of
alphanumeric order. For example, an alphanumeric order would be
and the corresponding natural order would be
Sort only directories starting with directory and ignore all
Sort only directories starting with directory and all
-q FATSort will work quietly without printing additional
-r Sorts the directories in reverse order (Z-A).
-R Sorts the directories in random order.
-v Shows version information only.
Sorting FAT filesystem on an USB stick:
Sorting FAT filesystem in a file:
Sorting FAT filesystem of drive E: under Windows:
Boris Leidner <fatsort(at)formenos.de>
FAT12 is not supported yet.
Please report bugs to fatsort(at)formenos.de. Thanks.