[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Forcing RW on boot



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