public static void generateRandomFile(String path, int size) throws IOException{
		
		size *= 1024;
		Process p = Runtime.getRuntime().exec("dd if=/dev/urandom of="+path+" count=1 bs="+size);
		boolean finish = false;
		while (!finish) {
			try {
				p.exitValue();
				finish = true;
			} catch (IllegalThreadStateException ex) {
				
			}
		}
	}