I recently transferred a backup of my CD collection from a Windows server to a new NAS. When I mount it on my Linux desktop, I'm seeing a lot of directories and files where characters with accents and Norwegian characters have been replaced by an underscore:
$ ls -al
drwx------ 6 chris chris 0 juli 16 23:11 G_te
drwx------ 6 chris chris 0 juli 16 23:02 Guns N' Roses
drwx------ 3 chris chris 0 aug. 30 10:47 Les Mis_rables - 10th Anniversary Cast
Moving the files and directories by name or inode doesn't work, all I get are errors saying that the file can't be found. I've also tried to use convmv
as suggested in other similar questions, but it doesn't list any changes to be made.
Also, folders with bad characters doesn't list any contents and files with bad filenames can't be found. Has anyone ever encountered something similar or have any suggestions? The only I can think of right now is to identify the directories/files with errors and rip the CDs again.
Update: Also checked with a Windows computer (as these files originally came from an NTFS-disk. Same issues there; I can't open directories, and if I try to rename it tells me that the directory/files no longer exists.
mv "Les Mis_rables - 10th Anniversary Cast" "Les Mis"
gives me an error saying that the file or directory doesn't exist.ls
(and any other command listing the files) displays an underscore instead of the illegal character; while any commands I try to use (regardless of how I input the bad filename; tab, copy/paste, inode) refers to the filename using an actual underscore. Thanks for the suggestions though.