Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying illegal filenames onto FAT32
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Wed Aug 22, 2012 8:40 am    Post subject: Copying illegal filenames onto FAT32 Reply with quote

I get an error when I try to copy files and folders with FAT32-illegal characters onto my Sansa Clip+ flashed with Rockbox. Is there any way to do this without manually changing each filename and folder name?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Wed Aug 22, 2012 8:52 am    Post subject: Reply with quote

It depends on the program that you use to copy. Some programs have a setting by which they offer to rename the files automatically. If you want to mass rename by yourself, you can make use of something like mmv.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Wed Aug 22, 2012 8:56 am    Post subject: Reply with quote

Does Thunar have anything like that?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed Aug 22, 2012 6:14 pm    Post subject: Reply with quote

grant123 ...

The illegal chars probably just need quoting ... you could try something like the following (here assuming there is some pattern to match on '-name' (you could replace this with '-type f' ... for file ... or some other match). Note that ./dest/ is the 'destination'.

Code:
find . -name "*.mp3" -print0 | rsync -av --files-from=- --from0 ./ ./dest/

HTH & best ... khay
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Wed Aug 22, 2012 10:19 pm    Post subject: Reply with quote

khayyam wrote:
grant123 ...

The illegal chars probably just need quoting ...
Don't think so, problem would rather be that Windows filesystems don't support characters like / ? < > \ : * | ” in filenames, plus some more which I currently can't remember.

If your player works by reading the tags and you don't care how the files look on your player, you could just use some random ascending order or try a snippet of mine I used for a similar task: https://forums.gentoo.org/viewtopic-t-843389.html (3rd post)
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Thu Aug 23, 2012 6:57 am    Post subject: Reply with quote

I ended up using picard to rename them. It works great and you can have it replace non-Windows characters automatically.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum