Fix dd script and update log file.