Feb 25, '03 05:38:00AM • Contributed by: leenoble_uk
It turns out that Samba has a penchant for deleting and replacing the /etc/hostconfig file. Fortunately, I had found out this information beforehand following a similar incident last week after I'd spent two days trying to fix everything. This time, however, I had partitioned my drive and had an OS 9 disk to boot from. Using FileBuddy, I renamed /etc/hostconfig.old to /etc/hostconfig, and the computer booted into X fine.
It seems bizarre to me that the absence of this one file can cause OS X to totally fall on its face in this way. Now potentially this could happen when the system is interrupted doing anything which rewrites this file, I suppose. That might include changing any Network Settings or turning off and on any sharing options.
So just in case you do ever get that nasty prompt and the sinking heart feeling try to get onto your drive and see if the hostconfig file exists. It might just save you a bit of time.
[robg adds: This is a particularly nasty effect. I tested it on an iBook 500 (creating a backup of hostconfig first), and sure enough, delete hostconfig, and the system is unusable. You can't even boot into single user mode. Well, you can, but you can't do anything useful like replace the hostconfig file. I booted the iBook in FireWire target disk mode from my desktop Mac, restored the backed up hostconfig, and then rebooted the iBook. All was fine. I'm not sure how you'd recover a machine that lacked OS 9 or another machine to boot it with -- thoughts?]
