I have a Pi3 model B, with an external HDD, connected through powered USB hub. I just followed tutorials to set up samba server, vpn server, etc, and it's been working just fine, until today.
A couple of days ago, there was a power outage, but I restarted Pi, and it seemed to work fine. Then I left home for a couple of days, and when I returned today, I couldn't access my drive, I tried to ssh into my public folder, but there was an error, something about 'input/output'. I ran `dmesg`, and it said something like "print_req_error: critical target error...".
Then I tried to reboot the Pi and that's when the nightmare began. It entered the emergency mode, the root account is locked, and just says "Press Enter to continue", but when I press enter, nothing happens. I read about adding `init=/bin/sh` to my cmdline.txt and remounting root. I tried `mount -o remount,rw /` but then I got the error saying something like "cannot find partuuid=...". My /etc/fstab is "unwritable"...
I don't know what to do now, looks like it's something about my HDD being corrupted, but how do I go about fixing this? Does anyone have an idea?