deleted etc restore how?

seann

Registered
So, a user deleted the etc directory in OS 9 for OS X. now it boots me into a shell. How can I boot into OS 9 using the command line (open firmware too?) options.

Boot CD is not an available option because the system administrators locked it up.

RFC?
 
/etc is just a symbolic link to /private/etc.
If the user just deleted /etc, you can easily restore it at the shell:

First, check the disk:
/sbin/fsck -y
repeat until you don't get any errors returned (1-3 times, usually).

Next, mount the filesystem and restore the symbolic link /etc --> /private/etc:
/sbin/mount -uw /
/bin/ln -s /private/etc /etc
reboot
 
Back
Top