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

MimUK

macrumors member
Original poster
Jan 31, 2005
39
0
Please could someone help.
I have accidentally deleted the Private folder in the root of the HD
Now OSX will not boot.

The folder is still sitting in my Trash folder and I would like from the Boot CD Terminal to copy back from the trash to the Macintosh HD/ location

Any help is greatly appreciated.

Mim
 
Please could someone help.
I have accidentally deleted the Private folder in the root of the HD
Now OSX will not boot.

The folder is still sitting in my Trash folder and I would like from the Boot CD Terminal to copy back from the trash to the Macintosh HD/ location

Any help is greatly appreciated.

Mim

so why don't you do exactly as suggested, boot from install cd, use terminal, mount drive and move the folder. should boot without a problem. permissions may likely be bunk though, so you can issue a sudo diskutil repairPermissions / if things are still not happy.

good luck.

i guess this is the reason os x makes system folders hidden.
 
Sorry for my ignorance.
Please could you explain how I mount the image from the terminal and copy back to the root folder.
I am not sure of the syntax

Cheers
 
I have managed to terminal into the .Trash folder and i can see the private folder in there

Sean
 
If I select Y
I get rename ./private to /private: read-only file system
 
If I select Y
I get rename ./private to /private: read-only file system

it's a permissions issue. i would have thought the installer terminal is in single user mode, but obviously not.

try
Code:
sudo mv ./private /
if it asks for a password, just press enter. i can only assume that the root user has no password assigned...

it's possible that the mounted drive is in read-only mode, though again, this seems unlikely. try to see if you can create a file.
Code:
cd /Users/yournamehere/
Code:
touch yada.txt
Code:
ls yada.txt

this would be a bucket-load easier if you had another mac...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.