UNIX & LINUX‎ > ‎How-To‎ > ‎

How to fix Boot Failure due to incorrect /etc/fstab


Enter to grub mode (press any key after restart the server):

add init=/bin/bash to the end of the kernel command line and press enter

The system will boot to a prompt.

Run the commands in the prompt:

mount -o remount,rw /
vim /etc/fstab   (if can't found "vim", try /bin/vi)

Edit the fstab file, comment the errors by adding a # at the begining of each problematic line, save the file

Reboot by pressing CTRL+ALT+DEL