Share your knowledge at the LQ Wiki.
 LinuxQuestions.org [SOLVED] dd - how long does it take for a 500GB drive
 Linux - General This Linux forum is for general Linux questions and discussion. If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

 08-03-2011, 09:43 AM #1 masontech@compren.com LQ Newbie   Registered: Aug 2011 Posts: 2 Rep: dd - how long does it take for a 500GB drive Doing a complete backkup of one drive to another, creating a duplicate. Using the command dd if=/dev/sda of=/dev/sdb. I have used this before on a 40GB drive. This time I'm doing a 500GB drive - does anyone have an wild guess on how long it should take?
 08-03-2011, 10:14 AM #2 crts Senior Member   Registered: Jan 2010 Posts: 2,020 Rep: Hi, the exact time will depend on the speed of your harddisks. Are they external USB harddisks? Both internal? SATA? You can calculate the time with the following formula: Code: `500*2^10/X` Where X is the average speed. You can determine it by running a test. You can copy 1GB between those two disks and see which average speed you get. E.g., I get for 1GB: Code: ```\$ dd if=dummy of=dummy2 2097152+0 records in 2097152+0 records out 1073741824 bytes (1.1 GB) copied, 53.0985 s, 20.2 MB/s``` The bold part is the value for X. You do not need to convert the 'MB'. So 500GB would take Code: `500*2^10/20 = 25600 seconds =~ 425 minutes =~ 7 hours` Note, that I copied the from and to the same disk. If you are using two different disks then you will probably get higher transfer rates. 1 members found this post helpful.
 08-03-2011, 10:46 AM #3 masontech@compren.com LQ Newbie   Registered: Aug 2011 Posts: 2 Original Poster Rep: Perfect, thank you. The command prompt has not returned, so it appears to still be copying. Although I have heard that sometimes this happens, even though it has completed. It has been going now for 13 hours, so I will stop it and see if I have a good copy.
08-03-2011, 10:54 AM   #4
crts
Senior Member

Registered: Jan 2010
Posts: 2,020

Rep:
Quote:
 Originally Posted by masontech@compren.com Although I have heard that sometimes this happens, even though it has completed.
Where did you hear that? If you want to see the progress while the dd command is running then issue it in this manner:
Code:
`dd if=/path/to/source of=/path/to/target bs=1M & pid=\$!`
This will start dd in the background. You can check the progress with
Code:
`kill -USR1 \$pid`

Last edited by crts; 08-04-2011 at 09:11 AM.

2 members found this post helpful.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post abefroman Linux - Server 1 03-23-2011 12:41 PM gilbertt Linux - Hardware 3 11-13-2008 09:02 PM twinkers Debian 4 06-08-2008 02:42 AM cojo Linux - Hardware 16 06-06-2007 12:05 PM cyberpuerka Linux - Hardware 6 05-11-2005 12:08 PM

LinuxQuestions.org

All times are GMT -5. The time now is 05:31 AM.

 Contact Us - Advertising Info - Rules - Privacy - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -