If you don't have a root shell already open, there seems no chance of opening one now.Damn, the machine hasn't been rebooted or anything. it's still running. No way to get sudo back and fix it right away?Anyway to move them back?
Not without another Linux machine, no.
- Remove borked drive
- If anything on it is important take a backup
- Flash a clean RPiOS to a different SD card (or other boot media).
- Boot from it
- Connect the borked drive
- Mount it
- Attemtp to fix it.
As already mentioned, a reasonable solution is plop the card in an USB SD card reader and use another Linux system to move the files back.
Statistics: Posted by ejolson — Tue Oct 15, 2024 1:18 am