1
You should get to single user mode:
Reboot the computer and hold Shift, so that the grub menu appears:
Highlight the second entry and press e
Use ↓ to go to the line stating with linux, then use → to go to ro and change it in rw, remove everything after that with init=/bin/bash
Following ...