[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Forcing RW on boot
- Subject: [ale] Forcing RW on boot
- From: mike at trausch.us (Michael B. Trausch)
- Date: Tue, 30 Mar 2010 16:33:46 -0400
- In-reply-to: <1269975592.26509.16.camel@cfowler-desktop>
- References: <1269968234.21416.42.camel@cfowler-desktop> <[email protected]> <1269975592.26509.16.camel@cfowler-desktop>
On 03/30/2010 02:59 PM, Chris Fowler wrote:
> int main(void) { reboot(0x12345567); }
>
> gcc -o restart ./restart.c
It is handy to have a stripped, minimal copy of a reboot program like
this for any system architecture that you might use, for the reason that
you've run into. I guess that the people who write the init utilities
think that they'd rather you not be able to shoot yourself in the foot
and force a reboot without going through all the proper shutdown
process... but sometimes, you just need to shoot the system!
That said, you should be able to do something similar with mount, or
even move over a known-good mount binary that you could compile with
static linking.
--- Mike
--
Michael B. Trausch ? (404) 492-6475