Skip to main content


Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Stereo reading mp3 files in wrong order (from USB pen-drive) (Read 12294 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Stereo reading mp3 files in wrong order (from USB pen-drive)

Reply #25
Yes, rewriting the filesystem is easy to do when dealing with FAT, since it can just read the entire thing to memory, reorder the directory entries, then rewrite it back to disk, all without having to touch any of the files or even the allocation bitmap.

Re: Stereo reading mp3 files in wrong order (from USB pen-drive)

Reply #26
I used a tool called Fatsort for my old car stereo.  It basically rewrites the FAT (table of contents) in alphanumeric order.  On my 128GB flash drive with about 15,000+ tracks, it only took about a minute.

Thanks a lot! ; that fixed a annoying issue on my AGPTEK-U3(8GB) MP3 player with track listing order (which was one of the most obvious complaints I had with the device). it used to seem totally random, but now the MP3 track listing in all folders is listed as expected (like how it works on a typical file manager for a OS)...

'01. song name.mp3' to '02. song name.mp3' to '03. song name.mp3' and so on (which is how I setup Foobar2000 to output files I made converted from FLAC). before using that and just transferring the songs to the device/MicroSD card it seemed totally random as it could be something like... '04. song name.mp3' to '01. song name.mp3' to '09. song name.mp3' etc.

I got lucky stumbling into this thread as 'fatsort' works well on Linux (Linux Mint v20.1-Cinnamon) as it was easy enough to use, as after installing it (i.e. "sudo apt install fatsort" (or search for 'fatsort' in 'Software Manager' to install it)) with your device/memory (MicroSD etc) connected, you simply run the following two commands from terminal...

Code: [Select]
umount /dev/sdX
sudo fatsort -n /dev/sdX

NOTE (in relation to the above 'code'): where "X" is replaced with the location of your device/memory stick in FAT32 format. NOTE: a easy way to find the location of your device etc you want to use on 'fatsort' is to run the 'lsblk' (that's LSBLK) from terminal to find the location of your device first before running the 'code' stuff above. or if you don't want to use terminal for that just open the typical file manager as, at least in Mint v20.1-Cinnamon, you can simply hover mouse pointer over the connected device under the 'Devices' section in file manager and it will show you the exact location of the device.

then you just sit back and it goes through the directories of your FAT32 memory stick etc and once done I put the 16GB MicroSD memory card back into my AGPTEK-U3(8GB) MP3 player and when accessing the directories through the device they are listed normally now like how they are in a typical file manager on ones OS (Win/Linux) unlike before where it seemed totally random how things were ordered and was a little annoying.

p.s. I got some of that info from...
For music I suggest...
1)Opus @ 64kbps or 96kbps.
2)AAC (Apple or FhG(Winamp)) @ 96kbps.
3)MP3 (LAME) @ V5 (130kbps). NOTE: I am using MP3(V5) on AGPTEK-U3(8GB) as of Mar 18th 2021.

SimplePortal 1.0.0 RC1 © 2008-2021