Private folder

Discussion in 'MacBook Pro' started by starjam, Nov 10, 2012.

  1. starjam macrumors newbie

    Joined:
    Nov 10, 2012
    #1
    Hello. I accidently deleted my private folder from my mbp. Now when i start it, it gets stuck on the gray screen with the apple logo. I have tried using terminal to move the folder back, but to no avail. I entered the following command:

    cp -R /volumes/Macintosh\ HD/users/<username>/.Trash/private /Volumes/Macintosh\

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

    Let me know what you guys think. Thanks
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Looks like you are missing the HD at the end there.
     
  3. starjam thread starter macrumors newbie

    Joined:
    Nov 10, 2012
    #3
    Tried it but still no luck
     
  4. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #4
    Try starting in single user mode then precede the command with sudo.
     
  5. starjam, Nov 10, 2012
    Last edited: Nov 10, 2012

    starjam thread starter macrumors newbie

    Joined:
    Nov 10, 2012
    #5
    I am kind of a new mac user so would the command look something like this?

    sudo cp -R.....

    I have tried this but still no luck.
     
  6. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #6
    Okay... I just did a little tinkering with a test folder I trashed and this worked. Enter single user mode like I showed earlier and enter this command. You will be asked for your admin password. Where I put "username" you need to substitute your own username.

    Code:
    sudo cp -r /Users/[I]username[/I]/.Trash/private/ /private
     
  7. leman macrumors 604

    Joined:
    Oct 14, 2008
    #7
    The private folder is pretty much the core configuration of your entire OS ^^

    You will have to reinstall (or use your Time Machine backup), I am afraid. I am not sure whether restoring the folder will also restore all the hidden properties etc, or if its even possible to restore it in the first place. Did you delete it from Finder?
     
  8. starjam thread starter macrumors newbie

    Joined:
    Nov 10, 2012
    #8

    yes, i deleted it from the finder
     

Share This Page