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
$ 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