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:
mount -ahere the system will inform you of unmounted partitions, but those we need are mounted
open vi editor:
vi /etc/fstabedit the file
:wqsave the file
rebootreboot the system.
This work is licensed under a Creative Commons Attribution-NoDerivs 3.0 United States License.
Got a comment?
All Rights Reserved.