mirror, mirror on the wall

mirror, mirror on the wall

remotely disk wipe

Posted on .

$ mkdir /mnt/tmproot
$ mount tmproot -t tmpfs -o size=1G,nr_inodes=16k /mnt/tmproot
$ rsync -aPx / /mnt/tmproot
$ mount -t proc proc /mnt/tmproot/proc
$ rm -rf /mnt/tmproot/dev/
$ cd /dev
$ ./MAKEDEV -d /mnt/tmproot/dev zero
$ ./MAKEDEV -d /mnt/tmproot/dev sda
$ ls /mnt/tmproot/dev/

LAST CHECK!!!

$ pivot_root /mnt/tmproot /mnt/tmproot
$ dd if=/dev/zero of=/dev/sda

About

github

Creative Commons

RSS