You can't fix it from the prompt it gives as there is no root password set (and there shouldn't be).
You have options:
Have you made any changes to /etc/fstab? Broken entries or drives/partitions in there not being present at boot are the most common causes I've seen on here of the error message you're asking about.
You have options:
- Make sure all drives that your Pi expects are connected at boot.
- Reconfigure your pi to boot into a limited shell for debugging:
- Shut down the Pi
- Pull the SD card
- Using a USB card reader plug it into another computer. If prompted to format a partition do not do so.
- Open cmdline.txt in a text editor.
- Add the following to the end of the line:making sure the file's contents remain on a single line.
Code:
init=/usr/bin/bash
- Replace the SD card in the Pi
- Reboot
- Debug in the minimal shell you are presented with.
- Once fixed remove the addition made above to cmdline.txt
- Use another Linux computer (which could be the same Pi booting from a different SD card).
- Shut down the Pi
- Pull the SD card
- Using a USB card reader plug it into another Linux computer.
- Mount the SD card's root partition.
- Identify and fix the error.
- Replace the SD card in the Pi
- Reboot
Have you made any changes to /etc/fstab? Broken entries or drives/partitions in there not being present at boot are the most common causes I've seen on here of the error message you're asking about.
Statistics: Posted by thagrol — Thu Mar 07, 2024 12:35 am