Computer Science Canada Garbage Generator |
Author: | randint [ Fri Feb 17, 2012 4:45 pm ] |
Post subject: | Garbage Generator |
This program generates "garbage" files containing 0s until IOException is thrown because the space is filled |
Author: | mirhagk [ Sat Feb 18, 2012 1:07 am ] |
Post subject: | RE:Garbage Generator |
And the point is............. And this takes more than 5 seconds normally....... |
Author: | randint [ Sat Feb 18, 2012 3:07 pm ] |
Post subject: | RE:Garbage Generator |
Oh, the point of that, is to create garbage and other evil things |
Author: | Tony [ Sat Feb 18, 2012 3:47 pm ] |
Post subject: | RE:Garbage Generator |
well that is not very useful... it can also be accomplished in a single line, by copying content out of /dev/zero -- http://en.wikipedia.org/wiki//dev/zero |
Author: | DemonWasp [ Sat Feb 18, 2012 6:25 pm ] |
Post subject: | RE:Garbage Generator |
Funnily enough, he actually writes ASCII '0', which is 0x30, not 0x00. Plus, it'll only ever saturate the logical volume it's run on, and even then writes a maximum of about 5.5TB. You could do this faster, better, and more accurately with: dd if=/dev/zero of=/dev/sda bs=4k (Seriously though, don't run that. If you destroy your own system, it is completely and totally not my fault.) |
Author: | randint [ Sat Feb 18, 2012 10:16 pm ] |
Post subject: | RE:Garbage Generator |
chkdsk detected errors anyhow, but I do not know why though, could anyone tell me why this program is destructive? |