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

I do not have a backup. Should I back up before I try doing a reinstall of the os x?
That's also known as shutting the barn door after the horse has bolted.
It can't hurt, but it's not going to help much.
Camelot: when you say "apps and user content should stay intact" - doesn't sound very definitive. Are there any variables that come into play?
No.. generally it's pretty reliable, but yours is an odd situation. I wouldn't expect to lose any user data, just CYA
I do have a start up disk along with some apps that I created in retrospect many years ago ....(I think it's os x 10.2.8) Can I use this to boot up and then just navigate to my user files so I can get some things done that I need to?
Unlikely. For one have you even tried restoring from your Retrospect backup? (it's not the most reliable system).
Secondly, you can't boot from your Retrospect backup, so you'll need to restore that system to boot from it. Have you got a second disk to restore to (you do NOT want to restore 10.2.x over your 10.4.x system).
in terms of "random deleted files" : not entirely random
Ok, maybe not entire random, but it's also somewhat unknown. You need to have some idea of what files you're trying to restore, but if you haven't got them in a backup where are you going to get them from?
You cannot just take old copies from your 10.2.x system and hope they'll work (in case that's what you're thinking).
The BEST solution is to boot from the 10.4.x installer disk and let it do its thing.
And for what its worth, Unauthorized access attempts, in and of themselves, are not a cause for concern since they were clearly caught by the OS. It's the access attempts that succeed (and are not logged) which are more of an issue.

Similar Messages

  • Unable to boot normally - Always need to boot with Single User Mode

    Hi Community,
    Since last few days, I am unable to boot my Macbook Pro normally, running latest version of OS X Yosemite. When I boot, it goes to grey screen with Apple logo and progress bar, once the progress completes to 100% (after 5-10 minutes which is very longer than usual), it asks me to 'Select  language' which seems like fresh installation of OS X. In that case, when I click next and it doesn't detect my SSD (blank list of select installation disk/drive).
    After reading some threads, I found work-around and always need to boot into Single user mode (by pressing Command+S during power on) and then need to run following commands...
    /sbin/fsck -fy
    /sbin/mount -uw /
    "device is write protected" numerous times
    reboot
    and then only it loads OS X and displays login screen. This happens all the times and I need to follow above steps always to get login screen.
    How can I fix this?

    Please help me out here. I tried booting it off a USB flash drive with ATV flash but that gave me some errors and prompted me to login with username [email protected] with password frontrow
    But I am not sure how to get to login using a suitable input. I tried to telnet it using my PC over network but I dont think it has initialized anything (like wifi or network) at the prompt. Would it take USB keyboard input? All I can do is remove the power and restart it with the usb flash out and get into then get into the recovery loop. I am not sure replacing the hard-drive would help. Any help would be greatly appreciated.
    Thanks
    Sinu

  • Internal HD on mac mini not well... need to boot in Single User Mode

    Internal HD on mac mini not well... need to boot in Single User Mode.
    I only have a Bluetooth Keyboard and Bluetooth Mouse so when I try to boot in Single User Mode (to do the /sbin/fsck hard drive fix thing) it doesn't see the Bluetooth Keyboard. What's the solution?
    I also used SuperDuper to use as a boot drive but it won't unmount my internal HD. arghh..
    Help

    I have a corrupt drive and was unable to repair all the errors after booting from OS X installer disk and choosing Disk Utility...
    I followed the "boot into single user mode" instructions hoping to complete my repair with fsck, however once I got to the localhost:/ root# prompt, my keyboard seemed to be unrecognized!
    I tried 3 different USB keyboards - original Apple USB keyboard, Kensington Mac USB keyboard and an old SGI USB windows keyboard. All were able to enter the apple-S key to get into single user mode but NONE of them were able to type any commands whatsoever.....
    I'm thinking my only option is to boot the mini as a target drive off my laptop and try to backup my 30GB of music and photos before wiping the drive...
    2nd option might be to try Disk Warrior for $79??
    Anyone else have ideas for me?

  • Booting in single user mode to trouble shoot grey screen the boot stops at "CODE SIGNING .... clearing CS_VALID" will not command c past - stuck

    booting in single user mode to trouble shoot grey screen the boot stops at "CODE SIGNING .......... clearing CS_VALID" - cannot command C past - just stuck

    Hi opjml0,
    Welcome to the Apple Support Communities!
    If your Macbook is starting up to the gray screen, I suggest the steps in the following article.
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/ts2570
    I hope this helps,   
    -Joe

  • Network / external access when booted in single-user mode from install CD?

    So I have this iBook with a semi-functional hard drive: can't boot from it (either normal or single-user), can't use it in Firewire Target Disk mode, can't fix it with Disk Utility, an overnight run with Disk Warrior seemed to be hung, etc, BUT if I boot in single-user mode from the install CD I can then mount it readonly and see at least many of the files on it.
    So now I want to slurp the important ones of those files off of it over the network (or in any other clever way anyone can suggest). I'm not a huge Unix or Darwin expert, so an exact set of commands would be appreciated. *8) A friend suggested to me that I might be able to 'init' it at a 'runlevel' that included the networking stack, but I dunno what that means. *8) Does the CD in fact include a full networking stack? Or anything else that I might be able to use to slurp some data from the hard disk before it gives up entirely?
    Tx very...
    Message was edited by: David Chess; annoying typo

    David
    I think Ronda was hoping you had the Tiger Instal DVD, which has a copy of Terminal on it.
    You said earlier that trying to boot into Target Disk Mode didn't work. Would it help you if you could? If so, I can show you how to do it from Single User Mode. I've done it, and it works, although admittedly I did boot into SU mode from my HD, not my Instal Disc (I have tried that, it also works, I just haven't done both together).
    If you can make use of this, post back and tell me what you get from which nvram when you are booted in SU mode from your CD. It's possible that command won't be available on the CD—so we need to check first. If it says "which: no such command", try ls -l /usr/sbin/nvram instead.

  • Freezing with blue screen & can't boot from single user mode or disk

    My keyboard is wired and plugged directly into my Intel iMac running OSX 10.5.8. I do not have the Leopard disks, but I do have the Tiger disks. I was trying to boot in single-user mode so that I could run AppleJack to try to fix another issue I'm having--I get the light blue startup screen flashed at me several times daily for the past week or so. When the blue screen flashes, it totally freezes my computer (obviously) and lasts from 1-10 seconds. I can't find anything that is triggering it. I haven't installed anything new that I'm aware of, and it happens whether the computer has previously been slept or not. I'm also not using an external display / additional monitor.
    Also, for anyone who is nice enough to answer, please explain everything--I'm not an expert user.

    Well since it is so time consuming and a security risk to turn off FileVault, I was hoping to hear from someone with more experience if this was the solution, or just something to "try"? Are you speaking from experience or just making a suggestion, leroydouglas? Thanks.

  • How do I mount an external Firewire HD when booting into single user mode?

    Hi,
    How can I mount an external Firewire Harddisk from the Darwin Console, once I have booted into single user mode?
    I'm trying to make a backup of all my files and then re-install my iMac G5 since it doesn't start the GUI anymore and I haven't gotten any responses to my question here: http://discussions.apple.com/thread.jspa?threadID=1104762&tstart=0
    Thanks,
    Torsten

    ok, I executed the following commands:
    /sbin/fsck -fy
    /usr/libexec/registermach_bootstrapservers /etc/mach_init.d
    autodiskmount
    There were two messages:
    UniNEnet: Ethernet address 00:14:51:32:19:b8
    and
    Aug 29 20:55:29 launchd: server 2e3b in bootstrap 1103 uid 0: "/usr/sbin/lookupd"[16]: exited abnormally: Hangup
    I don't know whether this has anything to do with the commands I entered.
    And since I don't know what the volume name for the external Firewire HD is, I typed
    ls -l /Volumes
    but the only volume that is being listed there is my iMac's internal HD.
    What should I do next?
    Thx!

  • Mac mini i5 mid 2011 always boot in single user mode...how to get out of this?

    my mac mini always boot into single user mode
    how can i revert back to normal boot screen?
    i tried formatting the hard disk and clean install of mac os x 10.9.2 but nothing change..
    pls help
    mac mini ...core i5 @2.3 ghz mid 2011 model
    thanks in advance

    Restart the computer with the Option, Command, P, and R keys held down. Release them upon the second startup chime.
    (110762)

  • Failure to boot in single user mode

    Hi,
    I have an iBook G3 900MHz G3 running 10.4.6. 384MB RAM, ~25GB free disk space.
    it's running slow so I want to boot in single user mode and run applejack.
    the trouble is, it won't boot in single user mode. when I hold command-s or command-v it just boots right to the GUI.
    i've tried both command keys thinking that one might be broken.. no luck. I also have no trouble getting to single user mode on my G4 laptop.
    I have not taken steps to disable single user mode.
    any ideas?
    thanks a lot

    I think it would be worth a try to repair permissions and then boot from the Install disk to run Repair Disk in Disk Utilities. If you still cannot boot into single user mode after that, perhaps obtaining and running Disk Warrior can resolve the problem.
    Bob N.
    Mac Mini 1.5 GHz; iBook 900 mHz; iPod 20 GB   Mac OS X (10.4.6)  

  • Can you run a bash script on boot in single user mode

    Hey guys quick question.
    Is it possible to run a bash script on boot in single user mode.
    I can create a file and dump it on the root hd.
    Let's call it repair.
    I can then boot to single user mode and run it by typing /repair.
    But I want it to do it automatically.
    Every time I go into my machines that I clean for my job. I have to run sbin/fsck -fy
    Then I have to mount the drive and then remove all cache files, then reboot the machines.
    I would like to automate this by just holding command s and then moving to the next computer.
    There must be some sort of boot daemon somewhere.
    Please help.
    Sincerely,
    John

    Have you seen Applejack?
    http://applejack.sourceforge.net/
    It doesn't start automtically, but does cleanup.
    Robert

  • MacBook won't boot in Single User Mode

    My MacBook will neither boot up in Single User Mode nor in Safe Mode. Nor will it perform a PRAM zap. The key-combinations I use during boot-up are OK, because they work well on my iMac. Does anyone know why this is? And of course: how it can be solved?
    MacBook: white, late 2007, 13", 10.6.2
    iMac: early 2008, 20", 10.6.2
    key-combo's used: command-S / shift / command-option-P-R

    Called MacHouse, they supposed it could be Firmware-related. Since all software on the MacBook was up-to-date, a Firmware-update could not help me out. They advised me to remove the Mac's memory and reboot, thus forcing the Firmware to get a fresh grip on the installed hardware, including keyboards and the like. I don't understand the technical details of this, but it worked.
    Removing both memory-cards made the MacBook make panicky beeping sounds, but removing one of them, rebooting, then reinstalling it and reboot again did the trick. It will now boot in Single User Mode, Safe Mode and Apple Hardware Test.

  • Can't boot in Single User Mode or zap PRAM on iMac G5

    I want to boot into Single User Mode in order to run Applejack to "clean" the system before applying Apple's latest security patches. So I hold down Cmd-S at start-up, but it has no effect; the computer boots normally into the Tiger GUI. Thinking that zapping the PRAM might help, I restarted while holding down Cmd-Opt-P-R. Same result: normal startup with no zap. I tried resetting the power management circuit by unplugging the iMac and depressing the power button. No effect.
    Apart from the inability to do special boots, the system seems to be running just fine. Any ideas?
    iMac G5 Mac OS X (10.4.8) 1.5 GB RAM

    Ben F-
    Not guessing yet. You did not provide what steps you have taken thus far and now I know.
    I am thinking then that you have somehow set up firmware password protection.
    At least the things that you describe are disabled if a password is set.
    Luck-
    -DaddyPaycheck

  • Terminology question: "booting as root" vs. "booting in single user mode"

    Terminology question: "booting as root" vs. "booting in single user mode".  Are these terms interchangeable, or is there a subtle or not-so-subtle difference?  (Obviously something I don't do often.)
    Thanks in advance.

    Boot to Single user allows root access.
    It isn't "booting to root" as in Linux, but I think is as close as it gets.
    You can enable root from a normal boot:
    http://www.youtube.com/watch?v=Y-JEpDi-cME
    Interesting read:
    http://www.securemac.com/macosxsingleuser.php
    This is fun:
    http://osxdaily.com/2007/01/22/what-happens-in-the-mac-os-x-boot-process/

  • Boot in Single User Mode gives no keyboard control (wireless (ALU keyboard)

    Power up Mac Pro
    when startup sound comes I enter cmd+s
    System boots into Single User Mode
    until it displays: root#_
    Now I am not able to type anything on the keyboard to display on the screen
    What could be the cause of this strange behavior?
    I am using the wireless apple alu keyboard with the magic mouse
    Oh, I also tried this with an USB attached keyboard and I had the same result. Booting into Single User Mode went fine but then the keyboard did not do anything after once we were in Single User Mode.
    Other than on this occasion the keyboard (and mouse) works fine. I've also done the latest firmware upgrades to the keyboard as well. All system software is at the latest revisions.
    Message was edited by: audip

    20" G5 Imac 1.8Ghz Mac OS X (10.4.8)
    You may want to find *Using Tiger* forum or PPC G5 iMac; or, go back to earlier versions of Applejack (which always from my experience worked 100% on Power Macs and pre-Leopard).
    AJ and SU just use Apple's diskutil and you are always better off with something like Disk Warrior, AJ/SU is handy when you don't have another drive handy to boot from or just wanted to clean up caches or something.

  • Usbmultitouch debug report id is invalid when i boot in single user mode

    been having a problem for a few months where my track pad will not work at all when i start my mac.
    the only things that have worked so far to solve the issue is to restart the laptop, or on occasion to put the laptop to sleep and wake it up several times.
    booted in to sigle verbose mode and see the message
    AppleUSBMultitouchDebug: ReportID is invalid in AppleUSBMultitouchDriver::_deviceGetReportWithLookup
    AppleUSBMultitouchDebug: ReportID is invalid in AppleUSBMultitouchDriver::_deviceGetReportWithLookup
    AppleUSBMultitouchDebug: ReportID is invalid in AppleUSBMultitouchDriver::_deviceGetReportWithLookup
    AppleUSBMultitouchDebug: ReportID is invalid in AppleUSBMultitouchDriver::_deviceGetReportWithLookup
    AppleUSBMultitouchDebug: ReportID is invalid in AppleUSBMultitouchDriver::_deviceGetReportWithLookup
    rooting via boot-uuid from /chosen: 7C3431B-A5F6-3122-8A21-83882ABAAC92
    BLAH BLAH BLAH...
    Looked around and have found no help anywhere so far.

    I think it would be worth a try to repair permissions and then boot from the Install disk to run Repair Disk in Disk Utilities. If you still cannot boot into single user mode after that, perhaps obtaining and running Disk Warrior can resolve the problem.
    Bob N.
    Mac Mini 1.5 GHz; iBook 900 mHz; iPod 20 GB   Mac OS X (10.4.6)  

Maybe you are looking for