LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-15-2006, 10:32 AM   #1
andy_g_gray
Member
 
Registered: Jul 2003
Location: Glasgow, Scotland
Distribution: Mandriva Spring 2007
Posts: 32

Rep: Reputation: 15
Writing files to flash drive in the right order


I bought myself a cheap mp3 player which is essentially just a flash drive with a jack plug attached.

So I plug it in to the usb port, and "removable drive" pops up on my desktop. I then copy my mp3 files over to the player. So far, so good,

Except...

If I copy a folder over, the files within it get copied in seemingly random order. It's not alphabetical, it's not file size, it's not "last modified"...

Like this:

Hard drive - folder a: {01_track1.mp3, 02_track2.mp3, etc}
mp3 player - folder a: {07_track7.mp3, 11_track11.mp3, etc}

The consequence of this is that when I play back an album the tracks are in the wrong order, since my cheap player just plays them back in the order they were written.

I have to admit that this is at worst a minor annoyance, and I usually have the player set to "shuffle" anyhow, but occasionally I have the urge to listen to an album all at once, in the order the artist intended.

So, any way to make sure the files within a folder are written in alphabetical order?

I'm using Nautilus/Gnome/Mandrake 10.0

Thanks,

Andrew
 
Old 11-15-2006, 09:20 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949
Copy the files in a console using the cp command. The wildcard * will read the files in alphanumerically from the first file in the directory.

'cp -v * /sda1/'

Changing /sda1/ to whatever the actual target directory is, if different.

Of course, the files have to be named alphanumerically in the first place, but if these are album tracks they should already be like that.

Edit: d'oh, it doesn't work when you copy the whole directory. The files in the directory don't copy in order this way either. Now I'm stumped too. Sorry.

Last edited by David the H.; 11-15-2006 at 09:27 PM.
 
Old 11-16-2006, 04:09 PM   #3
andy_g_gray
Member
 
Registered: Jul 2003
Location: Glasgow, Scotland
Distribution: Mandriva Spring 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks anyway. I have transferred a couple of albums in order by doing one track at a time, but that gets old pretty quickly.

I'd love to know if there is any logic to the order that the tracks get copied.

AG
 
Old 11-26-2006, 10:50 AM   #4
andy_g_gray
Member
 
Registered: Jul 2003
Location: Glasgow, Scotland
Distribution: Mandriva Spring 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Any ideas anyone?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write files immediately to flash drive. adds2one Linux - Hardware 7 10-06-2006 12:13 AM
Cannot mount USB Flash Drive, 4 device files Hakala Linux - Software 1 04-01-2006 12:20 PM
Problems with reading & writing to USB Flash Drive LordSurvivoR Linux - Hardware 8 01-31-2006 02:45 PM
slow writing to flash drive obstinatesod Linux - Newbie 11 01-03-2006 03:14 AM
LXer: EDGE Tech Corp Announces Portable Flash Drive With Muscle - the New 8GB DiskGO!(TM) Now Available; Swap and Go With This Secure Thumb-Sized Flash Drive LXer Syndicated Linux News 0 12-14-2005 02:16 AM


All times are GMT -5. The time now is 06:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration