Re: increasing dd disk to disk transfer rate



In the last episode (Jan 12), Christoph Kukulies said:
> My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop
> read errors. I have FreeBSD and Win XP on that disk. Although FreeBSD
> ist still working , the errors in the Windows partition are causing
> Windows do ask for a filesystem check nearly everytime I reboot the
> computer. One time the error was in the hibernate.sys file, which
> impedes powering up quickly after a hibernate.
>
> Anyway, I decided to buy a second identical hard disk and tried to
> block by block copy the old disk to the new one using
>
> dd if=/dev/ad2 of=/dev/ad3 conv=noerror
>
> The process is running now since yesterday evening and it is at 53 MB
> at a transfer rate of about 1.1 MB/s.

Everybody has mentioned the first obvious fix: raise your blocksize
from the default 512 bytes. The second fix addresses the problem that
with a single dd, you are either reading or writing. If you pipe the
first dd into a second one, it'll let you run at the max speed of the
slowest device.

dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k

--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: suitability of freebsd 5.3 for 486 dx2 66?
    ... >Ted Mittelstaedt wrote: ... >>hard disk. ... You can get FreeBSD on 250 ... To unsubscribe, ...
    (freebsd-questions)
  • Re: The installer cant find my partition
    ... > that i wanted to try ut FreeBSD. ... I was soon asked where i wanted to install FreeBSD. ... > choose my first hard disk. ... FreeBSD will only install to a primary partition. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: hi
    ... > the same Hard Disk. ... Win98 and FreeBSd do not run at the same time. ... There are some emulation utilities that may allow this. ... online FAQs and publications and archives. ...
    (freebsd-questions)
  • page fault when starting system with new hard disk
    ... Put a new hard disk is my system today, and setup ... drive that freebsd lives on. ... page fault while in kernel mode ...
    (freebsd-questions)
  • The installer cant find my partition
    ... I have runned Windows as longs a i can remember, but last night i found out ... that i wanted to try ut FreeBSD. ... I have three hard disks which had a total of ten partitions. ... choose my first hard disk. ...
    (comp.unix.bsd.freebsd.misc)