Rescue RPI with “Cannot open access to console, the root account is locked.”
If your Rasberry Pi (RPI) won’t boot and is showing “Cannot open access to
Don’t sweat. It can be fixed with a little work.
You were probably editing /etc/
To fix this get your SD card out of the RP and plug it into your computer. Ignore the requests to format the card (don’t format it or you’ve lost everything). One of the drives will have data on it and you will see a file called cmdline.txt open this text file in Notepad or similar and add the following text to the end of the first line init=/bin/sh
Save the file and put the SD card back into the RPI and power it up. You will need a keyboard plugged into the RPI for the next step and be viewing the output via HDMI.
Part way through startup the pi will now switch into bash (the console). This will enable you to go and fix the /etc/
sudonano /etc/ fstab
- remove the faulty line (ctrl+k to remove line)
- Save the file
- Take the SD card back out and remove the init=/bin/sh from the
- Reboot the Pi and it should now work fine
However, sometimes you
- mount -o remount,
rw/ –target /
before the steps above.
Thanks You. You are My hero
It leaves a kernel panic saying that something tried to kill init