Under a Raspbian 3.18.7 ARMV71 GNU/Linux embedded inside a cute Raspberry Pi B 2, when configuring some 'silent' options under
/etc/init.d files with a now evidently broken and stupid file, the following symptoms appeared:
- Linux booted with a
- System is a 'Read-only file system',
- Most (if not all) functionality if broken.
The error was a commented line under
/etc/init.d/dphys-swapfile, which should be as-is. Editing them, is impossible now.
Of course, the backups for the original files are there, under
<filename>_bkp names, but the system is read-only, and renaming commands are all disabled.
How can I edit the 'offensive' lines under those
init.d files, or restore the backup files, or start under recovery mode?
Raspberry Pi exchange solutions are all 'wipe and reinstall' kind, but this is a more Linux flavoured question, and im pretty sure there exist another command line approach for recover from this dumbness...