Solutions:
Source:
- at the grub prompt, hit a to append options
- add init=/bin/bashto the end of the kernel command line and press enter
The system will boot to a prompt like 'bash-3.2#' enter the following commands at the prompt
- mount -o remount,rw /
- vim /etc/fstab