Re: rm -rf /
From: Bryan Donlan (bdonlan_at_gmail.com)
Date: 09/08/05
- Next message: Keith Keller: "Re: OT:php"
- Previous message: Bryan Donlan: "Re: How to mount init ?"
- In reply to: Jacob: "Re: rm -rf /"
- Next in thread: Brian Wakem: "Re: rm -rf /"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 08 Sep 2005 00:53:05 -0400
Jacob wrote:
> On Tue, 06 Sep 2005 22:33:17 +0100, a posting issued forth from Brian
> Wakem...
>> What actually happens if you do rm -rf / ?
>>
>> Will the system just crash at some point or will it complete and leave
>> you at a prompt where you can do nothing?
>>
>> I ask because I'm about to decommission a server and feel like wiping
>> everything on it. Trouble is I need to be able to powerdown afterwards
>> (it's a remote server).
>>
>
> Without experimenting, for obvious reasons, maybe (*DON'T TRY THIS AT
> HOME, KIDS!*):
>
> shutdown -P +1440 & for x in /dev/?d?; do shred $x & done
If you erase the data on the hard drive partitions, shutdown will be unable
to page-in additional data once it awakens. While shred is running, all
read-only data (code included) for shutdown will likely be evicted as well,
so it'll simply segfault when it finally gets around to running.
Of course, this is all assuming the filesystem driver doesn't give up and
trigger a kernel panic first, or init segfaults, or something.
-- λz.λi.i(i((λn.λm.λz.λi.nz(λq.mqi))((λn.λz.λi.n(nzi)i)(λz.λi.i(((λn.λz.λi.n (nzi)i)(λz.λi.i(iz)))zi)))((λn.λz.λi.n(nzi)i)(λz.λi.i(iz)))zi))
- Next message: Keith Keller: "Re: OT:php"
- Previous message: Bryan Donlan: "Re: How to mount init ?"
- In reply to: Jacob: "Re: rm -rf /"
- Next in thread: Brian Wakem: "Re: rm -rf /"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|