I'm trying to empty my trash, and it seems that I having some problem with encoding:
MacKassner:501 kassner$ rm -Rf t/t/
rm: t/t//t: Directory not empty
rm: t/t/: Directory not empty
Ok then, let's see what's inside:
MacKassner:t kassner$ pwd
/Volumes/DATA/.Trashes/501/t/t/t
MacKassner:t kassner$ ls -la
ls: 07 The Kids (feat. Janelle Monáe).mp3: No such file or directory
total 128
drwxrwxrwx 1 kassner staff 32768 Jan 7 10:42 .
drwxrwxrwx 1 kassner staff 32768 Feb 4 18:12 ..
It seems a problem with the special char on that file. I can't empty trash using Finder either (even securely).
EDIT: StackExchange changes a litte bit the exhibition of the special character. Here's a screenshot:
Best Answer
The quick and dirty way to trash a folder is to move another folder with the same name into the existing folder. It looks like you have a folder
t
which might be amenable to making a new folder on the data drive and name it identically to the folder you wish to nuke and then trashing the "new"t
folder.If that doesn't work, you should be able to open a finder window and attempt to rename the problematic file. See http://support.apple.com/en-us/HT201583 for details.
Lastly, if nothing works, consider posting what format the /Volumes/DATA is via
diskutil list
andsudo ls -laOR /Volumes/DATA/.Trashes/