Command Line Expert Needed: Deleted hostconfig (+ others) - boots to single user mode only !
Mac OS X Tiger 10.4.11
Deleted folders/files when logged in as root user. (don't ask!)
On restart , wont boot up , get grey screen with white apple logo the black screen with command line: localhost:/ root#
Started up from install cd - repaired permissions (ran twice) & verified hard drive . All okay.
Restarted but still goes back into command line with same localhost:/ root prompt
Tried a bunch of different things as per advice on these boards - discovered that there is no hostconfig file.
Restarted into verbose mode.
Here are the lines that i think may reveal exactly what I messed up - and hopefully someone out there has an idea how I can try to fix without having to do an archive/install.
BSM auditing present
disabled
rooting via boot-uuid from /chosen: (here a very long string of numbers and letters looks like a password)
Then a long line about
"got boot device = IOService:/MacRISC2PE ........."
Then, the following
"BSD root: disk0s3, major 14, minor 2"
"CSRHIDTransitionDriver::stop"
"IOBluetoothHCIController::start Idle Time Stopped"
(AND HERE'S THE BIGGIE:)
/etc/rc: line 93: /etc/hostconfig: No such file or directory
Apr 1. 06:01:44 launched: /bin/sh on /etc/rc terminated abnormally, going into single user mode
localhost:/ root#
I'm pretty sure I messed thing up pretty well - was mainly network/server folders and files - definitely samba, which I think I deleted, and under "network" in the finder, I also might have deleted my computer from the server list
As an aside in case this provides any insight, when I go to the terminal app when starting up from install cd, the prompt reads :
"bash-2.05b"
I'm also able to see the contents of my hard drive when using disk utility from install cd and and trying to "mount image" ---
Everything looks intact in terms of folders/files in my user account, but in the /root folder, there's only /library - which is empty.
Any help, insight, troubleshooting and even scolding - will be welcome! I need this thing booted
Cheers
PowerBook, Mac OS X (10.4.11), G4 1.5ghz ...on its' last leg...