How to force empty trash?

Discussion in 'Mac Basics and Help' started by p0intblank, Aug 2, 2006.

  1. p0intblank macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #1
    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!
     
  2. WildCowboy Administrator/Editor

    WildCowboy

    Staff Member

    Joined:
    Jan 20, 2005
  3. slooksterPSV macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #3
    In a terminal window

    Code:
    sudo rm -R ~/.trash
    
     
  4. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #4
    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. :(
     
  5. truz macrumors 6502a

    truz

    Joined:
    Jan 1, 2006
    Location:
    Florida
    #5
    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?
     
  6. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #6
    I tried all that and it's STILL not working. :eek: View attached thumbnail... am I doing it correctly?
     

    Attached Files:

  7. benthewraith macrumors 68040

    benthewraith

    Joined:
    May 27, 2006
    Location:
    Miami, FL
    #7
    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. :)
     
  8. slooksterPSV macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #8
    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.
     
  9. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #9
    And it's STILL not working... I tried what you said. View thumbnail:
     

    Attached Files:

  10. slooksterPSV macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #10
    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
     
  11. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #11
    Still not working... what is the deal??? It says Directory is now empty. What does that mean? Of course it's not empty.
     
  12. motulist macrumors 68040

    motulist

    Joined:
    Dec 2, 2003
    #12
    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.
     
  13. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #13
    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?
     
  14. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #14
    I'm going to second this, it looks like a filesystem error.
     
  15. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #15
    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?
     
  16. motulist macrumors 68040

    motulist

    Joined:
    Dec 2, 2003
    #16
    You're welcome. :)

    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.
     
  17. p0intblank thread starter macrumors 68030

    Joined:
    Sep 20, 2005
    Location:
    New Jersey
    #17
    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.
     
  18. motulist macrumors 68040

    motulist

    Joined:
    Dec 2, 2003
    #18
    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.
     
  19. motulist macrumors 68040

    motulist

    Joined:
    Dec 2, 2003

Share This Page