«

»

Jun 10

Recover from Unmounted VI : rc.conf Mistakenly Typed

Reboot your System.

reboot

Choose Single User mode from list. (Press F4)

Enter full path name of shell or RETURN for /bin/sh:

now your single usermode is enable.
Now the problem is even entered /bin/sh, still do not have any function can
change this configuration file, even “vi” is not available

After entering the single user mode, only your root filesystem
is mounted. If /usr (vi lives in /usr/bin) is a separate
filesystem, you have to mount it first. Try

# mount -a -t ufs
# /usr/bin/vi /etc/rc.conf

Change your /etc/rc.conf

reboot your system after cleaning your file.

reboot

Cheers!!

Leave a Reply