How to edit fstab in FreeBSD if the system can't boot

Sometimes if you made a mistake while editing /etc/fstab you can come across "Enter full pathname of shell or RETURN for /bin/sh:" error on system boot. Also many other things can cause that. For example, hardware change or altered BIOS configuration.

This error means that most commands and tools became unavailable because required partitions aren't mounted. But the situation can be fixed.

Do the following:

press Enter

mount -a
here the system will inform you of unmounted partitions, but those we need are mounted

open vi editor:

vi /etc/fstab
edit the file

press Esc

save the file

reboot the system.

Problem solved.

Got a comment?

captcha =


  1. System (20)
    1. FreeBSD (5)
    2. Linux (9)
  2. Email (2)
  3. DNS (2)
  4. Databases (1)
  5. WebServer (27)
Copyright © 2012-2015 HowToUnix - *nix Howtos and Tutorials
All Rights Reserved.