Sometimes we may make a mistake in the rc.conf file – either a syntax error or loading something which causes the system to crash. In such a case we need to fix the rc.conf file so that the system can boot normally.
The steps to do this are given below:
- Boot into single user mode
- When prompted for a shell pathname, press Enter
- Type mount -urw / to re-mount the root file system in read/write mode.
- Type mount -a -t ufs to mount the current file system so that you can runyour preferred editor eg. vi
- Edit /etc/rc.conf as required and save it
- Restart the system
Leave a Reply