Special characters in file/folder names

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8472
Joined: 14 Mar 2010, 20:29
Contact:

Special characters in file/folder names

Postby dedanna1029 » 10 Oct 2015, 17:54

Since when is Linux not able to handle special characters in file/folder names? I was transferring some files last night (my music library to a new drive, approximately 350GBs) first with Thunar, then tried dolphin, I had to change filenames one right after the other in some cases, so tried rsync.
rsync -arhvv <source> <destination>.

It came up with an error at the end, and said there were errors, but showed only the last one.

So, I ran an "rsync -arhvv --ignore-existing <source> <destination>", and this is what came up:

Code: Select all

[[email protected] ~]$ rsync -a -r -h -vv --ignore-existing /run/media/dedanna/b3a0d805-0f51-454a-be68-be873d9404d2/Music/Albums /run/media/dedanna/MUSIC/Music >transfer.txt
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Brian Jones Massacre/2004 - Tepid Peppermint Wonderland A " failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: mkstemp "/run/media/dedanna/MUSIC/Music/Albums/Brian Jones Massacre/2004 - Tepid Peppermint Wonderland - A R/.The Brian Jonestown Massacre - Tepid Peppermint Wonderland - A R.\#264_.RUL5hp" failed: Invalid argument (22)
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Goo Goo Dolls/2007 - Greatest Hits Volume One: The Singles" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Guns N Roses - Discography/1993 - The Spaghetti Incident?" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Hawkwind - Discography/1990 - Stasis: The UA Years Singles 1971-75" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Joy Division/2011 - Total: From Joy Division to New Order" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Judas Priest - Discography/1997 - The Best Of: Living After Midnight" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Julian Cope/1993 - Floored Genius 2: Best Of The BBC Sessions 1983-1991" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/L7/1997 - The Beauty Process: Triple Platinum (1997)" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Madness - Discography/2002 - Our House: the Original Songs" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/My Morning Jacket/2004 - Chapter 1:  The Sandworm Cometh - Early Recordings" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/My Morning Jacket/2004 - Chapter 2:  Learning - Early Recordings" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Queensrÿche - (Discography)/1988 - Operation: Mindcrime (Original Press)" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Queensrÿche - (Discography)/2006 - Operation: Mindcrime II" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Red Hot Chili Peppers/1992 - What Hits?!" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Robert Cray - Discography/1999 - Heavy Picks: The Robert Cray Band Collection" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Smash Mouth - Discography " failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Sparks/1991 - Profile: The Ultimate Sparks Collection (Ripped from Dee's cds)" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Sparks/1999 - 12" Mixes (Ripped from Dee's cd)" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Steve Miller Band/2003 - Young Hearts: Complete Greatest Hits" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Susan Svrček/Visions & Prophecies: Piano Music by Bloch, Scelsi, Messiaen, and Beethoven" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Sweet (tagged)/The Sweet-1971-1989/2009 - Action: The Sweet Anthology" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Symphonic & Power Metal/Dream Theater - Discography/1999 - Metropolis Pt. 2: Scenes From A Memory" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Symphonic & Power Metal/Pagan's Mind/2005 - Enigmatic: Calling" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Symphonic & Power Metal/Sarah Brightman/1995 - Surrender: The Unexpected Songs" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Symphonic & Power Metal/Sarah Brightman/2006 - Classics: The Very Best Of" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Symphonic & Power Metal/Sarah Brightman/2006 - Diva: The Singles Collection" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Black Keys/2006 - Chulahoma:  The Songs of Junior Kimbrough [EP]" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Cure - Discography/2008 - 4:13 Dream" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Dictators/Manitoba/1990 - ...And You?" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The English Beat/1983 - What Is Beat?" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Jesus and Mary Chain - Discography/2008 - The Power of Negative Thinking: B-Sides & Rarities" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Raspberries/2002 - The Very Best of the Raspberries: Overnight Sensation" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: mkstemp "/run/media/dedanna/MUSIC/Music/Albums/The Rascals/1992 - The Rascals Anthology/.23 - finale: once upon a dream.mp3.DCQTsg" failed: Invalid argument (22)
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/The Specials - Discography?" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Vangelis - Discography/Compilation albums/2003 - Odyssey: The Definitive Collection" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Warren Zevon/1986 - The Best of Warren Zevon: A Quiet Normal Life" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/run/media/dedanna/MUSIC/Music/Albums/Warren Zevon/1996 - I'll Sleep When I'm Dead: An Anthology" failed: Invalid argument (22)
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]
[[email protected] ~]$


What do I need to do?

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9273
Joined: 14 Mar 2010, 16:34

Re: Special characters in file/folder names

Postby viking60 » 11 Oct 2015, 11:41

Put a ? (Question mark) in the spaces when using rsync
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8472
Joined: 14 Mar 2010, 20:29
Contact:

Re: Special characters in file/folder names

Postby dedanna1029 » 11 Oct 2015, 16:22

It's not just spaces. The spaces it's not minding. It's colons, etc. that it's minding.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9273
Joined: 14 Mar 2010, 16:34

Re: Special characters in file/folder names

Postby viking60 » 11 Oct 2015, 22:43

I just made a directory called æøå - no problem.
Image
So Linux does handle it
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8472
Joined: 14 Mar 2010, 20:29
Contact:

Re: Special characters in file/folder names

Postby dedanna1029 » 12 Oct 2015, 00:49

I'm wondering why Mageia isn't then, and if something needs installing on it? Try copying that folder to somewhere please? Or try copying something to it?
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9273
Joined: 14 Mar 2010, 16:34

Re: Special characters in file/folder names

Postby viking60 » 12 Oct 2015, 07:12

Just made a Directory in Mageia called æøå and copied something into it. Then I made a file in that directory called æøå.

So your problem must be very local. Mageia handles it too here - in Thunar. Looks like an rsync issue to me...
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8472
Joined: 14 Mar 2010, 20:29
Contact:

Re: Special characters in file/folder names

Postby dedanna1029 » 12 Oct 2015, 15:12

I had started with dolphin though and Thunar and got the same thing.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”