Re: OT: fastest way to copy one drive to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06Sep2018 21:25, Fred Smith <fredex@xxxxxxxxxxxxxxxxxxxxxx> wrote:
On Fri, Sep 07, 2018 at 11:10:08AM +1000, Cameron Simpson wrote:
On 06Sep2018 19:20, Ranjan Maitra <maitra@xxxxxxxxx> wrote:
>I have two drives mounted on a F28 system. Both are identical 4TB
>drives. The second one is empty. I am concerned about the first
>one failing so would like to copy the contents (which are around
>3.7 TB) to the second.
>
>What is the fastest way to copy the contents of the first drive to
>the second? I was using rsync, but is there a better way?

while the other suggestions might be faster, I prefer to use dd
(or ddrescue) 'cause it gives a bit-for-bit copy of everything
on the drive, partitions and all. ddrescue is handy in case it
finds spots that are hard to read on the source drive, it goes
back and retries them til it gets a good read.

If the discs aren't full (or close to full) this should be slower. It does have the advantage of doing sequential drive I/O, so minimal drive head stepping.

Downsides: drives must be exactly the same size. If you're doing this with a partition (safer) the same size constraint applies (well, the target area can be bigger and you can resize the filesystem afterwards, depending on the filesystem).

If your drives are good where there's data, dd has some (small) risk of having an I/O error on nondata (unallocated areas). Tedious and annoying.

The other advantage of a file based copy (cp, rsync, tar etc) is that you can seize the opportunity to switch filesystems, eg upgrading from ext3 or ext4 to xfs.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux