How can I run radmind in Single User mode?
By: Richard Glaser - Revised: 2006-05-30 devinStartup into single-user mode - Disable Open Firmware Password (OFPW)
Note - OFPW will disable startup in single user mode
- Restart or startup the Mac into the Open Firmware
(Press Command + Option + O + F keys) - Enter the following command & press return:
setenv security-mode none
- Enter password at the prompt & press return.
- Enter the following command & press return:
reset-all
- This will restart the Mac
- Single User Mode
- As the Mac starts up, hold down the Command & S keys.
Repair & Mount Boot Volume - Check & repair boot volume
- Enter the following command:
fsck -y
- If you have journaling enabled, use the command:
fsck -yf
This will check the boot volume's file system, and attempt repair if necessary. Always do this first. Note that this may not be able to fix all problems in a single pass, so if it finds and fixes anything (it'll display "***** FILE SYSTEM WAS MODIFIED *****"), run it again, until it doesn't find any more errors.
- Note, sometimes fsck will not properly repair the startup disk it is usually better to use third-party utility DiskWarrior or re-image the hard disk with Apple Software Restore (ASR) if you have a hard disk with continual problems, before running radmind.
- Mount boot volume writable
- Enter the following command:
mount -uw /
This command remounts the boot volume, enabling write access. You need to do this before you can change anything on disk.
Starting system daemons & components - Start the kernel extension daemon:
/usr/libexec/kextd
- Bring up the network; you'll be able to ping IPs only
/usr/sbin/configd
- Start the resolver, so DNS works
/usr/sbin/lookupd
Run Radmind - Then run the radmind tools. That's it! You could put all these steps into a script, and then you'd have only one command to execute after booting into single-user mode.
Re-enable OFPW - After radmind has completed make sure to enable Open Firmware Password either using Open Firmware, nvram, or Open Firmware GUI utility.