Fix /etc/fstab syntax error in OpenBSD 3.1

I messed up my copy of /etc/fstab and when I booted into obsd 3.1, it threw me into single user mode. /usr was not mounted with editors and /etc was mounted as read-only. Here's how I fixed it.

mount -w /dev/wd0a /
mount /dev/wd0g /usr
export TERM=vt220

vi /etc/fstab
hit x for the characters to delete
hit i to start inserting text
hit esc to escape from insert mode

type :wq to save and exit
reboot


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd> <div> <img> <h1> <h2> <h3> <h4> <h5>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options