Case in point:
- FS corruption detected, I remounted the FS that contained both
/binand/sbinread-only, but they are not readable anyway. - I still have a running shell with sudo privileges not expired.
- I cannot run
/sbin/shutdownor/sbin/rebootor even/bin/kill, because they fail to read from the disk.
I want to reboot the machine to go to maintenance mode and e.g. run fsck from there.
How do I make the machine reboot?
Last time I just used the power switch. Did I miss a programmatic way to do that?
The machine was not running systemd. Would running it change the answer?
Update: this answer about triggering the Magic SysRq using just echo is nice, and would suffice in my case.