[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ways to destroy your partitions
Wouldn't it be be better to use /dev/random instead of /dev/zero? Also, wouldn't it be best to repeat this several times per partition. That way you could really wipe them out good.
-----Original Message-----
From: Nate Reindl [mailto:reindlnr@apci.net]
Sent: Thursday, June 27, 2002 11:36 PM
To: silug-discuss@silug.org
Subject: Ways to destroy your partitions
Quoting Jamon Terrell <JamonTerrell@charter.net>:
> curiosity@cat:~/# for i in `df |awk '{ print $1}' | grep dev`; do dd
> if=/dev/zero of=$i ;
> done
*cough*
(alkorin@kliren:~)$ cat > ./do-not-run-DIE-DIE-CRASH-BOOM << "EOF"
> for i in `df | cut -f1 | grep dev`;
> do
> echo dd if=/dev/zero of=$i
> dd if=/dev/zero of=$i
> done;
> EOF
(alkorin@kliren:~)$ chmod a+x ./do-not-run-DIE-DIE-CRASH-BOOM
(alkorin@kliren:~)$ ./do-not-run-DIE-DIE-CRASH-BOOM
dd if=/dev/zero of=/dev/hda1
dd if=/dev/zero of=/dev/hda3
dd if=/dev/zero of=/dev/hda4
dd if=/dev/zero of=/dev/hdb1
(alkorin@kliren:~)$
Byebye!
--
Nate Reindl << Resident... something.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.