Garbage Generator
Author |
Message |
randint
|
Posted: 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
Description: |
Writing zeros to files until disk is full |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
WriteZero.java |
Filesize: |
848 Bytes |
Downloaded: |
285 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Feb 18, 2012 1:07 am Post subject: RE:Garbage Generator |
|
|
And the point is............. And this takes more than 5 seconds normally.......
|
|
|
|
|
![](images/spacer.gif) |
randint
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: 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.)
|
|
|
|
|
![](images/spacer.gif) |
randint
|
Posted: 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?
|
|
|
|
|
![](images/spacer.gif) |
|
|