How do I login in single user mode?

Solution 1:

The easiest way to to just select recovery mode in grub by hold down left Shift when booting. Then Drop to root shell prompt.

If you need to write to files, select Remount first.