PDA

View Full Version : [SOLVED] Script help



dicecca112
July 15th, 2008, 08:03 PM
We have a machine here that I need to fill up 1.1 TB quick so that we can test our monitoring capability. So I figured download Ubuntu DVD and fill up the partition that way. Now I tried to write a script that would simply run through a while loop 300 times, and rename copy the file UbuntuDVD1, 2, 3 etc. But it didn't work. Can someone help me with this?

LaRoza
July 15th, 2008, 08:07 PM
Why don't you just write a script to make large files?

dicecca112
July 15th, 2008, 08:10 PM
How do I do that? Either way will work

drubin
July 15th, 2008, 08:11 PM
Why don't you just write a script to make large files?

That seems to be the OP's question...

I remember something about a a `dd` command that you could copy from /dev/zero or /dev/nrandom.

But you would have to google the exact place to copy form

drubin
July 15th, 2008, 08:15 PM
How do I do that? Either way will work
http://wiki.linuxquestions.org/wiki/Dd#Creating_empty_disk_images
http://maarten.lippmann.us/?page_id=116

Try those for a starting point.

dicecca112
July 15th, 2008, 08:21 PM
totally forgot about dd, I know how to do it now, thanks guys