[clug] Wiping a (running) system...

Scott Ferguson prettyfly.productions at gmail.com
Tue Jul 27 18:51:47 MDT 2010


 On Tue, 27 Jul 2010 12:56:24 +1000 Andrew Janke <a.janke at gmail.com>  wrote:
> To: CLUG List <linux at lists.samba.org>
> Subject: [clug] Wiping a (running) system...
> Message-ID:
> 	<AANLkTimc5Ek3kd0m7M_eAN16WysjHJgL+u3zkCpY5K_2 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> We've had plenty of talk about how to wipe a disk but I am in the
> situation where I want/need to wipe a remote system as much as
> possible.  I can't really get physical access to the system but can
> SSH to it now.  I can remove all the data from the data partitions no
> sweat but the root disk is more interesting...
>
> Is there some way to loading a currently running system into a ram
> disk or something and then wiping the disk from there?
>
> ta
>
>
> a
>

Other alternatives to pivot_root are /usr/lib/klibc/bin/run-init and
busybox has switch_root.
To help dealing with "fluff" try....
mount -t proc proc /realroot/proc
cd /
mount --move /realroot /
find /proc/$$/cwd/ -mindepth 1 -maxdepth 1 -print0 \
| xargs -0 rm -rf -- '{}' ';'
cd /




More information about the linux mailing list