Skip navigation

Trash

785 Views 7 Replies Latest reply: Jan 27, 2013 4:53 PM by lumhark RSS
MetallicAsh Level 1 Level 1 (0 points)
Currently Being Moderated
May 24, 2011 11:47 AM

For some reason when ever I go to delete something I get this error message:

Screen shot 2011-05-24 at 19.45.47.png

I think I may have deleted my Trash directory.. HELP!?

 

Thank you in advance!

  • Niel Level 10 Level 10 (234,445 points)
    Currently Being Moderated
    May 24, 2011 11:49 AM (in response to MetallicAsh)

    Click on the item in the Finder's sidebar with the house icon and verify that you are able to write to this folder in the Sharing & Permissions section of the Get Info window, and that it isn't locked; if it is already set this way and you get that error, open the Terminal in the /Applications/Utilities/ folder and run the following:

     

    mkdir ~/.Trash

     

    If you get a message stating that the folder exists, run the following:

     

    sudo chown $UID ~/.Trash

    chmod u+rwx ~/.Trash

     

    The first command in the second set will prompt you for your administrator password; nothing will appear in the Terminal window while it is being typed. In either case, click on the Finder icon in the Dock with the Control and Option keys pressed, and relaunch it.

     

    (58490)

  • thomas_r. Level 7 Level 7 (26,935 points)
    Currently Being Moderated
    May 24, 2011 1:41 PM (in response to Niel)

    Actually, easier than this IMHO is to just trash the .Trash folder, using the following command, then log out and back in to allow the system to recreate the trash folder for you.  That way you don't have to worry about setting owner and permissions on the folder.

     

    sudo rm -rf ~/.Trash
  • Niel Level 10 Level 10 (234,445 points)
    Currently Being Moderated
    May 24, 2011 1:51 PM (in response to thomas_r.)

    I consider 'rm -r' too dangerous to give out as part of troubleshooting any issue.

     

    (58494)

  • thomas_r. Level 7 Level 7 (26,935 points)
    Currently Being Moderated
    May 24, 2011 1:59 PM (in response to Niel)

    Yeah, I suppose that's true.  I've seen someone botch that command with an added space in a bad place and wipe their user directory.  But, if copied and pasted as shown above, rather than retyped, it's fine.  I can see why you might be reluctant to make a recommendation that requires such a caveat, though.

  • hacker.jon Level 1 Level 1 (15 points)
    Currently Being Moderated
    Jul 11, 2011 5:14 PM (in response to thomas_r.)

    I on e had a call for help from a colleague who had attempted to clean up his directory. He used rm -rf *, and realised too late that he was in '/'.  Before he could interrupt it, he had deleted most of the root partition.  Ouch.

  • lumhark Calculating status...
    Currently Being Moderated
    Jan 27, 2013 4:53 PM (in response to Niel)

    I think i have the same problem as metallicash, but i have done what u said, and it does not work... it says the folder does not exist... help please!

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.