LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Alexoes
User Name
Password

Notices


Rate this Entry

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?
Posted in Uncategorized
Views 6028 Comments 2
« Prev     Main     Next »
Total Comments 2

Comments

  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.
    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
    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 08: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 08:04 PM by lumak lumak is offline
 

  



All times are GMT -5. The time now is 02:48 AM.

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