Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Something funky happened on one of my external drives and now whenever I plug it in 2 files show up in my Trash. If I empty the Trash via Finder, nothing happens. Ditto for the Option+Empty Trash method.

Listing them via Terminal shows them as there

$ sudo ls .Trashes/501
¶_|íìê<-.b?†            æâù©ìë—‡.*?§

But attempting to rm them or get any information about them shows them as not there

$ sudo ls -F .Trashes/501/
ls: ¶_|íìê<-.b\032†: No such file or directory
ls: æâù©ìë—‡.*\026§: No such file or directory

$ sudo rm .Trashes/501/*
rm: .Trashes/501/¶_|íìê<-.b\032†: No such file or directory
rm: .Trashes/501/æâù©ìë—‡.*\026§: No such file or directory

Any thoughts? I've never seen anything like this.

Thanks in advance!

share|improve this question
3  
Have you tried rm -r .Trashes/501? – Daniel Beck Dec 6 '10 at 15:10
    
I'm leery of doing that because I don't really know what the directory is for. Is it not special in anyway? – Tim Visher Dec 7 '10 at 13:35
    
As it's stated in 英律功's answer, OS X will create it the next time you delete some files from the external drive via Finder. (I've done this few times) – koiyu Dec 14 '10 at 17:18
up vote 2 down vote accepted

Just

sudo rm -rf .Trashes

The directory will be recreated on the external by OS X as needed.

OR

Plug the drive into something with a different OS and zap it there.

If both of these fail, time to start checking filesystems and drive sectors...

share|improve this answer
    
How would one go about doing that? Both of those failed. ^_^ – Tim Visher Jan 12 '11 at 15:31

Try running a filesystem repair. Run Disk Utility -> select the volume in the sidebar -> First Aid tab -> Repair Disk button.

share|improve this answer
    
That did nothing. – Tim Visher Dec 7 '10 at 13:42

if not lucky with deleting them by the aforementioned steps, then restore the folders to some place on your disk e.g. your Desktop and there delete them via

sudo rm -rf \Path\to\Folder

this worked for me, but not inside the Trash folder itself

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .