Author Topic: [SOLVED] Rename a corrupted folder ?  (Read 1661 times)

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2378
Re: Rename a corrupted folder ?
« Reply #15 on: June 05, 2011, 04:28:49 AM »
The problem is the spaces in the name 01 - Andrea Berg - Warum nur tr?umen.mp3. You could try escaping them with backslashes like this:
01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3
or you could use quotes:
"01 - Andrea Berg - Warum nur tr?umen.mp3"


[willem@linux Andrea Berg - Traume lugen nicht]$ rm "01 - Andrea Berg - Warum nur tr?umen.mp3"
rm: cannot remove `01 - Andrea Berg - Warum nur tr?umen.mp3': No such file or directory
[willem@linux Andrea Berg - Traume lugen nicht]$

[root@linux Andrea Berg - Traume lugen nicht]# rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3
rm: cannot remove `01 - Andrea': No such file or directory
rm: cannot remove `Berg - Warum nur tr?umen.mp3': No such file or directory

One more try (a combi of things)

[root@linux Andrea Berg - Traume lugen nicht]# "rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3"
bash: rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3: command not found
[root@linux Andrea Berg - Traume lugen nicht]#


NO such file or directory ...... (I can play the music!)



Arsène Leiris

  • Guest
Re: Rename a corrupted folder ?
« Reply #16 on: June 05, 2011, 04:38:48 AM »
anyone could help me with iconv ?

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2378
Re: Rename a corrupted folder ?
« Reply #17 on: June 05, 2011, 04:42:35 AM »
anyone could help me with iconv ?

"ok, so I have no alternative but to delete it, ok thank you !"

I really wonder if you can ....

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Rename a corrupted folder ?
« Reply #18 on: June 05, 2011, 04:47:59 AM »
try:

ls -lq

will give you a "?" for each hidden character in the filename.

edit:
alternatively you can try rm *, answering yes only for files you want to delete.
« Last Edit: June 05, 2011, 04:49:48 AM by as »

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2378
Re: Rename a corrupted folder ?
« Reply #19 on: June 05, 2011, 04:53:01 AM »
I got it!

[willem@linux Andrea Berg - Traume lugen nicht]$ rm 01*.mp3
rm: remove regular file `01 - Andrea Berg - Warum nur tr\204umen.mp3'? y
[willem@linux Andrea Berg - Traume lugen nicht]$

This way I got finally rid of it! (Got it double anyway). Thanks to all that helped out here and hopefully this can help the OP getting rid of his (if he can't solve it it otherwise).

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Rename a corrupted folder ?
« Reply #20 on: June 05, 2011, 04:54:23 AM »
anyone could help me with iconv ?

please explain what is the source and what is the destination, in terms of encoding (i.e. windows cp1252) and used filesystems, or provide similar info at your best.

AS

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6386
  • I'm going South
Re: Rename a corrupted folder ?
« Reply #21 on: June 05, 2011, 05:05:52 AM »
Code: [Select]
mv: impossible d'évaluer « Vid*o »: Aucun fichier ou dossier de ce type doesn't work... I'll try iconv

Are you certain that "the shown name" really was "Vid?o" and not "Vid?os"? And were you in the parent folder when you entered the command?
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6386
  • I'm going South
Re: Rename a corrupted folder ?
« Reply #22 on: June 05, 2011, 05:13:41 AM »
The problem is the spaces in the name 01 - Andrea Berg - Warum nur tr?umen.mp3. You could try escaping them with backslashes like this:
01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3
or you could use quotes:
"01 - Andrea Berg - Warum nur tr?umen.mp3"


I'm sorry, but there remained one unescaped space between Andrea and Berg. The title should have been:
01\ -\ Andrea\ Berg\ -\ Warum\ nur\ tr?umen.mp3

My fault.

Quote
[willem@linux Andrea Berg - Traume lugen nicht]$ rm "01 - Andrea Berg - Warum nur tr?umen.mp3"
rm: cannot remove `01 - Andrea Berg - Warum nur tr?umen.mp3': No such file or directory
[willem@linux Andrea Berg - Traume lugen nicht]$

[root@linux Andrea Berg - Traume lugen nicht]# rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3
rm: cannot remove `01 - Andrea': No such file or directory
rm: cannot remove `Berg - Warum nur tr?umen.mp3': No such file or directory

Yes. Immediately after posting I realized that the quotes would make the shell interpret the question mark literally and not as a wildcard. I edited my post but obviously not fast enough.

Quote
One more try (a combi of things)

[root@linux Andrea Berg - Traume lugen nicht]# "rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3"
bash: rm 01\ -\ Andrea Berg\ -\ Warum\ nur\ tr?umen.mp3: command not found
[root@linux Andrea Berg - Traume lugen nicht]#


NO such file or directory ...... (I can play the music!)




I'm glad as managed to give you better help.
« Last Edit: June 05, 2011, 05:24:16 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Arsène Leiris

  • Guest
Re: Rename a corrupted folder ?
« Reply #23 on: June 05, 2011, 10:38:05 AM »
ls -lq gives me Vid?os

One more time... I installed PCLinuxOS with the french live CD (http://pclinuxos-fr.org/telecharger/) and then I re-installed it with the original PCLinuxOS. My Vidéos folder became Vid?os.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6386
  • I'm going South
Re: Rename a corrupted folder ?
« Reply #24 on: June 05, 2011, 10:49:35 AM »
ls -lq gives me Vid?os

One more time... I installed PCLinuxOS with the french live CD (http://pclinuxos-fr.org/telecharger/) and then I re-installed it with the original PCLinuxOS. My Vidéos folder became Vid?os.


Then try
Code: [Select]
mv Vid*os Vidéos
(If you have several files or folders in the same directory with names beginning with "Vid" and ending with "os" it won't work. If it's just one folder it should.)
« Last Edit: June 05, 2011, 10:55:12 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Arsène Leiris

  • Guest
Re: Rename a corrupted folder ?
« Reply #25 on: June 05, 2011, 10:53:46 AM »
what the **** ! It works !
Code: [Select]
mv Vid*os Vidéos
I... I... don't understand ! I already tried it and it didn't work !!

Thank you very much Bald Brick !

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Rename a corrupted folder ?
« Reply #26 on: June 05, 2011, 10:56:06 AM »
I'm glad as managed to give you better help.

not really better then You!  ;)

AS

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6386
  • I'm going South
Re: Rename a corrupted folder ?
« Reply #27 on: June 05, 2011, 11:02:16 AM »
what the **** ! It works !
Code: [Select]
mv Vid*os Vidéos
I... I... don't understand ! I already tried it and it didn't work !!

Thank you very much Bald Brick !

You are welcome. (You probably tried "mv Vid*o Vidéos" as I recommended in my earlier post. But my recommendation was based on the fact that you had told us the corrupted file name was "Vid?o", not  "Vid?os".)

 :D
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Arsène Leiris

  • Guest
Re: [SOLVED] Rename a corrupted folder ?
« Reply #28 on: June 05, 2011, 11:03:03 AM »
oh right...