Corrupted Files Can't Be Deleted or Renamed

Hi everyone,


I have about 28 MP3 files that somehow have corrupted file names. I have been unable to rename them to something not corrupt and have also been unable to delete them. I can move their containing folder to the trash, but then cannot delete them.


The "special character" that's showing up is displayed asin the filename. The original filenames did not have any special characters in them. For instance, one of the files was Deep Purple - Woman from T.mp3 But now it's Deep Purple ␀-Woman from T.mp3


I'd like to say I've tried everything, but I'm sure someone has a great idea for me that I haven't tried. Here's what I've done so far.

  • Rename via Finder - receive error that I should Try using a name with fewer characters, or with no punctuation marks. I simply called the file "file.mp3"
  • Rename via Terminal - receive error Invalid Argument. I did this dragging the file to the terminal to get the directory correct. I also tried typing the file name with quotes on either side of it.
  • Delete the file via Finder - receive the error The operation can’t be completed because an unexpected error occurred (error code -50).
  • Delete the file via Terminal using srm command - received the Invalid argument error
  • Delete the containing folder via both the Finder and Terminal and received the same above errors, even with the folder in the Trash

None of the files/folders are locked and I have full admin privileges. I've rebooted, logged off and on, deleted the finder permission file, repaired permissions and checked the disk via the disk utility. I also tried deleting the files and renaming them via another Mac, and via Windows 7 in a Parallels virtual machine.


I'm running 10.11.1 on a 27inch Mid 2011 iMac.


I'm soooo hoping someone has another idea on how I can delete or rename these stupid files. I'm at a loss for now :-(


Thanks in advance!

iMac (27-inch Mid 2011), OS X El Capitan (10.11.1), 2.7 GHz i5 with 16GB RAM

Posted on Dec 6, 2015 4:30 PM

Reply
10 replies

Dec 6, 2015 5:15 PM in response to bvila

Please select the text on the line below by dragging across it. Don't include the blank space at the end of the line. Only the text should be highlighted.

ls -@Oeln

Copy the selected text to the Clipboard by pressing the key combination command-C.

Paste into a Terminal window by pressing command-V, then press the space bar.

Now switch to the Finder and and select one of the items in question. Drag into the Terminal window. More text will be added to what you entered.

Click in the Terminal window to activate it, then press return.

Wait for a new line ending in a dollar sign ($) to appear. Post any lines that appear below that line—the text, please, not a screenshot.

Dec 6, 2015 7:42 PM in response to Linc Davis

Here's the output


mv: rename Do*/zz*/Deep Purple*- Woman from T.mp3 to Do*/zz*/Deep Purple- Woman from T.mp3: No such file or directory

Weird. I even tried the command from within the zzzzzInvalid directory and got the same thing

mv: rename Deep Purple*- Woman from T.mp3 to Deep Purple- Woman from T.mp3: No such file or directory

Any other thoughts? Thanks!

Dec 6, 2015 8:17 PM in response to Linc Davis

Ugh. Probably not worth it. I was able to get the files back in a roundabout way using MusicBrainz Picard. All of my Time Machine backups had the same corrupted file name, so this goes way back (before 2012). Anything could have happened back then. And no luck in Windows either :-( I may just leave the corrupt folder until I upgrade my Mac in the next year.


Do you have any experience with Disk Warrior? I wonder if that might help. I have a recent version of it, but have no idea exactly what it does...ha ha ha :-)


Thanks for all your help!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Corrupted Files Can't Be Deleted or Renamed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.