Share your knowledge at the LQ Wiki.
Go Back > Blogs > Alexoes
User Name


Rate this Entry

DD Cloning

Posted 05-18-2011 at 02: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?
Posted in Uncategorized
Views 4882 Comments 2
« Prev     Main     Next »
Total Comments 2


  1. Old Comment
    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.
    $ 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
    This will just write 0 to the 'null' device.

    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 again
    Posted 05-18-2011 at 09:03 PM by lumak lumak is offline
  2. Old Comment
    BTW, you are more likly to get responces from the forums. Not the blogs.
    Posted 05-18-2011 at 09:04 PM by lumak lumak is offline


All times are GMT -5. The time now is 12:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration