Edit rc.conf at start

Hello, I was changing the rc.conf and I made I mistake and saved it, when I reset the computer now it says "enter full pathname of shell or return for bin/sh".
If I write "su" it takes me to root but it does not allows me to modify rc.conf.
How I become root to be able to edit rc.conf and delete the bad character? Thanks in advance
 
You are in single user mode. When that happens only the root (/) filesystem is mounted, read-only.

Code:
fsck -y
mount -u /
mount -a -t ufs
swapon -a

Now you can edit /etc/rc.conf as normal.
 
SirDice said:
You are in single user mode. When that happens only the root (/) filesystem is mounted, read-only.

Code:
fsck -y
mount -u /
mount -a -t ufs
swapon -a

Now you can edit /etc/rc.conf as normal.

Excellent!!!!!. Thank you so much!!.
 
Back
Top