Mac OS X Server 1.x: Starting NetInfo Manually

Sometimes when you encounter problems during system startup, you can fix them by booting in single-user mode and starting NetInfo manually.
Note: This article pertains to Mac OS X Server versions 1.x, which were released prior to May 2001.

The simplest way to do this is to run this command:

sh /etc/rc

In case this hangs, though, and you must execute each step yourself after running "fsck -y" and "mount -uw /" as instructed by the first single user prompt:

Option 1: Run needed startup files up to and including 1100_DirectoryServices by hand:
You can cheat and do the above like so:
Option 2: Run exactly the needed commands:

If any of the above hangs, see the startup file that runs the busted program to see how it is normally launched. For example, 0300_VirtualMemory ensures that a swapfile exists before running mach_swapon. This is usually already the case.
Published Date: Feb 18, 2012