[nflug] which copy?

Ken Smith kensmith at cse.Buffalo.EDU
Wed Feb 7 14:52:38 EST 2007


On Wed, 2007-02-07 at 14:40 -0500, eric wrote:
> Why would you use:
> 1.) ssh server "cat /home/partition.img" \ |sudo dd of=/dev/hda
> over
> 2.) ssh server "dd if=/home/partition.img" | dd of=/dev/hda
> 
> I found # 1.) in a book

The default block size for dd is 512 bytes which isn't optimal for
reading data through the filesystem or writing data through a network
socket.  cat will default to reading/writing in larger chunks.

-- 
                                                Ken Smith
- From there to here, from here to      |       kensmith at cse.buffalo.edu
  there, funny things are everywhere.   |
                      - Theodore Geisel |


_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list