Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

p0intblank

macrumors 68030
Original poster
Sep 20, 2005
2,548
2
New Jersey
I have a file in my Trash that will not delete. I've tried two applications and it still will not empty properly. I get the sound effect for feedback like it's emptying, but the file remains. And yes, I tried Cocktail. It says something like the directory is empty.

Any help would be appreciated. Thanks!
 
I tried the Termainl technique and it still won't delete. It says unlinked file . . .

It's the same file as the OP of the other thread, by the way.

Edit: Just tried the above technique also... no luck. :(
 
Did you login root via terminal? You might need to set a password for root user..

Go (top menu) => Utilities => NetInfo Manager => Click on the LOCK so you can unlock NetInfo Manager => Security (top menu) - Enable Root User - Type root's new password.

Then goto Terminal, type "su root" it will then ask for root password. Then try removing the trash. "sudo rm -rf ~/.Trash"

*edit* I'm also guessing this is a permission issue, have you tried repairing permissions in disk utility?
 
truz said:
Did you login root via terminal? You might need to set a password for root user..

Go (top menu) => Utilities => NetInfo Manager => Click on the LOCK so you can unlock NetInfo Manager => Security (top menu) - Enable Root User - Type root's new password.

Then goto Terminal, type "su root" it will then ask for root password. Then try removing the trash. "sudo rm -rf ~/.Trash"

*edit* I'm also guessing this is a permission issue, have you tried repairing permissions in disk utility?

I tried all that and it's STILL not working. :eek: View attached thumbnail... am I doing it correctly?
 

Attachments

  • Picture 1.png
    Picture 1.png
    16 KB · Views: 201
Could you download it to the desktop and completely delete it whilst bypassing the trash can?

Don't ask me how to do that though, cuz I honestly would like to know myself. :)
 
Oh the problem, in the thumbnail is you are root you don't want to do ~/.Trash with root, if you're in your home folder /users/david then just type in ./Trash instead of ~/.Trash with root.
 
And it's STILL not working... I tried what you said. View thumbnail:
 

Attachments

  • Picture 1.png
    Picture 1.png
    23.6 KB · Views: 171
p0intblank said:
And it's STILL not working... I tried what you said. View thumbnail:
EDIT: never mind, same thing

EDIT2: The only way I can figure how to do it is reboot in single-user mode and remove it from /users/david/.Trash/

Single-User mode: press and hold CMD+S before the chime when the mac boots up. When you get to it, try that, although I think you have to execute mount -uw / (it says right above to make changes to) so be sure to follow those instructions, then type reboot to restart or
shutdown -r now
to reboot
 
Still not working... what is the deal??? It says Directory is now empty. What does that mean? Of course it's not empty.
 
Though you've probably already tried this ages ago, it still should be mentioned. Try starting up from the OS install disk and doing a disk verify. If the directory is funked up it can lead to weird problems like this.
 
Wait, I have an idea. How do you uninstall Adobe CS2 apps? I heard deleting them isn't the correct way in this case. Is there an official uninstall process I could go through if I redownload the trial version?
 
motulist said:
Though you've probably already tried this ages ago, it still should be mentioned. Try starting up from the OS install disk and doing a disk verify. If the directory is funked up it can lead to weird problems like this.

I'm going to second this, it looks like a filesystem error.
 
Thank you!!! It worked! :D It's nice to have an empty trash can again. There is one thing, however. Disk Utility said it repaired one volume, but another volume could not be repaired. Is this a problem I should worry about?
 
p0intblank said:
Thank you!!! It worked! :D
You're welcome. :)

p0intblank said:
Disk Utility said it repaired one volume, but another volume could not be repaired. Is this a problem I should worry about?

Yes, absolutely (assuming the disk it couldn't repair wasn't referring to the os install disk itself or some other optical disk). I would immediately, as in as soon as you're done reading this message, backup every scrap of important data you have on the unrepairable volume. Only after that should you monkey around with trying to fix it. In computer land, nothing sucks more than losing a ton of irreplaceable data.

P.S. doing a disk verify every couple of months is a good preventative measure.
 
Are you serious? I already had to replace my hard drive once... I hope this one is okay. The S.M.A.R.T. status says Verified, so I guess that's a good sign. I'll keep an eye on it.

Oh and I backed a lot of stuff up. Thanks.
 
As I understand it, SMART is only to detect hardware problems with your disk. This is not a hardware problem, this is data corruption in your directory. Meaning your hard disk can physically be working fine, while at the same time still losing all your data in a worst case scenario.

The directory is basically a map that says where each file on your disk is located, just like a map would say the toilet is in the bathroom. When your directory is corrupt it will say that files are in a place on your disk where they are not actually located, like a map saying the toilet is in the bedroom. If the damage is serious the directory may say that an area on your disk is free when it is actually occupied by your family photos, then when another program needs to write data it will overwrite the sectors containing your photos and then goodbye picture of baby's first steps.

Serious directory corruption is very rare, but if disk utility can't fix the problem then it's quite a bad sign (permissions that can't be fixed are often fine, I'm talking about volumes that cannot be fixed). I don't know what your computer habits are, but there are several activities that can invite this sort of trouble. For instance, if you use pirated software, if you run software that is still beta or from a small company of unknown reputation, or if you turn off your computer without doing a shutdown first, or things like that.

If I were you I'd solve this issue before it becomes an actual problem and you lose data.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.