The Solaris group is a forum where peers share technical expertise, solve problems, and discuss issues related to the Solaris operating system, including OS-related malfunctions, security issues, and network performance.

vi editor in single user mode

while i was trying something I put an has entry to /usr filesystem.
now when i reboot the system it did not boot.
I booted the system in single user mode thru cdrom and mounted the root
filesystem.
now i wan to edit the vfstab entry and remove the hash.
I am not able to do that as cursor never stops at that entry.
kindly guide me how can i do that.

Open vfstab using vi as usual now cursor down to the line above the hash
symbol you want to remove and the cursor right along this line it should
wrap to the line below and allow you to edit the hash out of the file.
It appears to be part of the line above and therefore the cursor will
not stop at this point using down/up cursor keys.

I am not sure what problem you are trying to solve, but in order to get any editor to work properly you need 2 variables:
TERM=3Dvt100 or similar terminal entry, look into the "termcap" file for various options.
EDITOR=3Dvi or a similar editor.

The first one sets up the terminal and allows your keyboard to function properly when in that mode and the second will tell the system what application to run for editing.