Copy files to an audio player and playing order

Hi, I have a digital recorder / player, a Sony PCM-M10. It can take FAT formated Micro SD cards. I can access them via USB, mount them and copy folders and files. However, there is one glitch: the order of the files. I call them 01_dada.wav, 02_ased.wav etc. ad hope it plays it in that order. The manual states: "If you have copied music files using your computer, those files may not be copied in order of copying because of the system limitations. If you copy a music file one by one to the PCM recorder, you can display and play back tracks in order of copying." So I copied the files after sorting them: find . -depth -print0 | sort -z | pax -wd0 | tar -xf - -C /mnt Still, the order is random. I wonder why.. My memory of FAT is blurry. During studies I "visited" floppy sectors to get deleted data back. If i am not mistaken, if a directory is new, it puts filename by filename in a directory list and references, one by one, although I am not familiar whether that changed with VFAT and long filenames. I may experiment with "real" copy one by one - directories first and then a kind of for f in `find . -type f`; do cp $f /mnt/$f; done or trying to figure out what changing the modification time does.. at the moment I am not sure why it's not working. Any ideas or experiences how to fix it? BTW: Besides of that I am very happy with the Sony PCM-M10. I have it on my HiFi at the moment and it has a crystal clear and full sound. Thanks Peter

On 27 August 2013 22:48, Peter <Petros.Listig@fdrive.com.au> wrote:
I have a digital recorder / player, a Sony PCM-M10.
It can take FAT formated Micro SD cards.
I can access them via USB, mount them and copy folders and files.
However, there is one glitch: the order of the files. I call them 01_dada.wav, 02_ased.wav etc. ad hope it plays it in that order.
[..]
Any ideas or experiences how to fix it?
Hi Peter I typed "fat directory order" into a search engine and with 5 seconds effort found this apparently related info: http://www.murraymoffatt.com/software-problem-0010.html I have no additional knowledge to offer you but I thought I might as well send it to you as you don't mention having done any searching yourself: I assume you sent this to luv-main because you are using a linux machine to copy the files? That page does emphasises other offtopic operating systems and non-linux filesystems, but it does include a couple of references to linux utilities and hopefully might provide you other useful insight into your problem.

On 27/08/13 22:48, Peter wrote:
for f in `find . -type f`; do cp $f /mnt/$f; done
Apart from not catering for embedded spaces in filenames, the 'find' here won't sort the files into a collation order. When copying sets of files from a single directory to an mp3 player, I just use a wildcard copy, since the wildcard will expand in collation order. Also, there's a program 'fatsort' in the package repositories which will do recursive directory sorting on FAT16 and FAT32, though I haven't tried it myself. Glenn -- sks-keyservers.net 0x6d656d65

On 27/08/13 22:48, Peter wrote:
for f in `find . -type f`; do cp $f /mnt/$f; done
Also, I notice that 'rsync -a' copies files in a sorted order (though I suspect this is just a side effect of the matching process; I haven't checked exactly what collation order it follows). That could be useful for transferring a hierarchy of folders onto your FAT based player. Glenn -- sks-keyservers.net 0x6d656d65
participants (3)
-
David
-
Glenn McIntosh
-
Peter