Skip navigation

deleted private folder in os x lion

865 Views 8 Replies Latest reply: Nov 14, 2012 4:05 AM by roam RSS
starjam Calculating status...
Currently Being Moderated
Nov 11, 2012 2:35 AM

I accidently deleted my "private" folder from my HD but not from the recycle bin. My MBP gets hanged up on the gray screen with the apple logo. I read some previous discussions and tried using the following command in terminal:

 

cp -rf /Volumes/"drive name"/Users/username/.Trash/private /Volumes/"drive name"\



 

When i enter this command the reply comes as: "My name": No such file or directory

 

Please help.

MacBook Pro, Mac OS X (10.6.8)
  • Barry Hemphill Level 7 Level 7 (33,065 points)
    Currently Being Moderated
    Nov 11, 2012 5:01 AM (in response to starjam)

    Hello:

     

    Your post is confusing.  If the folder is in the trash, move it to wherever you wish.  When you inicate you "deleted it from the HD," do you mean you moved it to the trash?

     

    Barry

    iMac, OS X Mountain Lion (10.8.2), 4 GB memory,DSL, Airport Express
  • Barry Hemphill Level 7 Level 7 (33,065 points)
    Currently Being Moderated
    Nov 14, 2012 2:21 AM (in response to starjam)

    Hello:

     

    I am sorry, but I am still confused.  What, exactly, sort of folder are you talking about?  Are you trying to empty the trash, or move the folder in the trash someplace?

     

    Incidentally, I do not (ever) use terminal commands, so I am no help there.

     

    Barry

    iMac, OS X Mountain Lion (10.8.2), 4 GB memory,DSL, Airport Express
  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Nov 14, 2012 2:34 AM (in response to starjam)

    I was wondering how did you managed to delete the /private folder.

     

    First of all it is a hidden folder. Second is a system folder and contains important system wide subfolders. Only root has full access to that directory.

  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Nov 14, 2012 3:33 AM (in response to starjam)

    The "easy" way is to start from installation DVD and do the move back in place from Terminal, but you must perfectly know what you are doing

  • roam Level 6 Level 6 (13,545 points)
    Currently Being Moderated
    Nov 14, 2012 4:05 AM (in response to starjam)

    Reinstall from the Recovery partition. You will not lose your personal files doing this. It will replace the system files you deleted.

     

    You mention Lion, and your profile shows 10.6.8 so it is a little confusing to advise you correctly, except to say, Reinstall according to the method applicable

    to whether you have 10.7 or 10.6

     

    Message was edited by: roam

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.