After rebooting my Raspberry Pi 2 (The shairport-sync service wasn't working properly) it checked the whole filesystem on boot, which took about 10 minutes. I had no idea why.
After it had done that, it rebooted again and the screen went black, with a blinking cursor in the top left. After connecting a keyboard and pressing Ctrl+Alt+F1, I could see that it was trying to log in with the user pi
automatically. However, that failed for a few times in a row and froze. In a new terminal tab (F2), I was asked for a login name. After entering pi
there, I got 'invalid login' as an answer.
There was no way for me to open a terminal so I unplugged it and am currently making an image of the SD card via my Mac.
I have no idea how to restore my working installation nor how I can access my old files. Unfortunately I was dumb enough to not make a backup beforehand.
What are the steps I should follow now? I cannot login, nor can I read the files of the SD card (except for the BOOT and RECOVERY partitions). I am going to try adding init=/bin/bash
to the cmdline.txt
file on the boot partition, as I've read that somewhere, but I am not sure if that is going to work and where to go after that.