I can't empty the trash of my removable drive. At first it appears to empty it correctly (no error message, the sound is played), but the folder in question stays there.
I tried:
jan@MacBook-Pro /Volumes/JD 2 $ sudo rm -rf .Trashes/
which gives errors like the following:
rm: .Trashes//501: Directory not empty
rm: .Trashes/: Directory not empty
Anyways, I narrowed it down to a .svn
file that can't be deleted:
root@MacBook-Pro /Volumes/JD 2/.Trashes/501/CD_10.2009/devel/funghos $ ls -altr .svn
-rwxrwxrwx 1 _unknown _unknown 690 Oct 21 2009 .svn
root@MacBook-Pro /Volumes/JD 2/.Trashes/501/CD_10.2009/devel/funghos $ rm -f .svn
root@MacBook-Pro /Volumes/JD 2/.Trashes/501/CD_10.2009/devel/funghos $ ls -altr .svn
-rwxrwxrwx 1 _unknown _unknown 690 Oct 21 2009 .svn
As you can see, no error appears, but the file doesn't get deleted. Huh?
sudo rm -f .svn
in the second step yet? – nohillside Jul 22 '12 at 10:01-f
option? – nohillside Jul 22 '12 at 12:17