Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187406

Re: dd to clone a drive

From Jack Dangler <tdldev@gmail.com>
Newsgroups linux.debian.user
Subject Re: dd to clone a drive
Date 2017-09-29 13:40 +0200
Message-ID <uv1Ob-5yp-35@gated-at.bofh.it> (permalink)
References <utYz1-5vR-27@gated-at.bofh.it> <uu07M-6zu-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 09/26/2017 11:35 AM, Gene Heskett wrote:
> On Tuesday 26 September 2017 09:57:57 Jack Dangler wrote:
>
>> I have an existing drive near EOL (judging from the sounds). I got a
>> replacement drive for it (same size).
>>
>> I plugged the replacement into a USB port and started a byte-for-byte
>> copy with
>>
>> dd if=/dev/sda of=/dev/sdc
>>
>> The process ran quietly for almost 30 hours with no discernable
>> results so i killed it. Apparently, it had been running the whole time
>> and resulted in approximately 300 of 500Gb copied. Is it 'usual' to
>> have dd take upwards of 2 days to copy a drive ?
>>
>> The source drive is a 500G 5400rpm WD, and the target is a 500G
>> 7200rpm WD black.
>>
>> Thanks for any input.
>>
> I think when no bs size is specified, it does a sector copy and likely
> verifies it. In writing sd cards in a usb reader/writer here, dd's
> execution time can be cut to maybe 5 minutes for a 2GB image by the use
> of the "bs=4096" option in the above command line.  That should mean
> your 500GB copy operation would take about 20 hours, probably much less
> since the hd can write faster than my sd cards can on a sustained basis
> like 500GB.
>
>> Regards
>>
>> Jack
>
> Cheers, Gene Heskett
Thanks to Roberto Sanchez, Michael Stone, Thomas Schmitt, Pascal 
Hambourg, Michael Stone, and Gene Haskett for the great input! A little 
more reading and a little experimentation, and I've got this working 
well. Changed the process so that each partition was separately cloned, 
but also changed block sizes and made sure that both source and target 
were unmounted. The partitions took far less time than the original, and 
the verification was successful on all. I even cloned my entire 
installation and booted from it to make sure that it, too, would 
function. Thanks again for all the invaluable help!

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

dd to clone a drive Jack Dangler <tdldev@gmail.com> - 2017-09-26 16:00 +0200
  Re: dd to clone a drive Roberto C. Sánchez <roberto@debian.org> - 2017-09-26 16:20 +0200
  Re: dd to clone a drive Michael Stone <mstone@debian.org> - 2017-09-26 16:20 +0200
  Re: dd to clone a drive "Thomas Schmitt" <scdbackup@gmx.net> - 2017-09-26 16:40 +0200
    Re: dd to clone a drive Michael Stone <mstone@debian.org> - 2017-09-26 17:30 +0200
  Re: dd to clone a drive Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-26 16:50 +0200
  Re: dd to clone a drive Gene Heskett <gheskett@shentel.net> - 2017-09-26 17:40 +0200
    Re: dd to clone a drive Jack Dangler <tdldev@gmail.com> - 2017-09-29 13:40 +0200

csiph-web