DD Cloning
Posted 05-18-2011 at 01:01 PM by Alexoes
Hi I was wondering if there is a way to use dd to clone an image and show a progress bar because when I use this tool I don't know if is really working or not?
Total Comments 2
Comments
-
dd --help at the very end, stats that you can send the job to the background to execute it and store the pid some where. Then you can send the USR1 signal to the Process ID to get status.
To test this you can try the following.
Code:$ dd if=/dev/zero of=/dev/null& pid=$! $ kill -USR1 $pid; sleep 1; kill $pid 18335302+0 records in 18335302+0 records out 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s
Note, the "&" sends the process to the background and pid=$ stores the process id for later use by the kill command.
You may have to press enter twice to see the command prompt againPosted 05-18-2011 at 08:03 PM by lumak -
BTW, you are more likly to get responces from the forums. Not the blogs.
Posted 05-18-2011 at 08:04 PM by lumak