Re: Command which does not work anymore?

2011-12-06 Thread Patrick Lamaiziere
Le Mon, 5 Dec 2011 11:38:46 -0600, Dan Nelson a écrit : Hello, > dd with a bs= option tells dd to use read() syscalls with a 10mb > size, but ssh is going to feed it data in much smaller chunks, and > they're unlikely to be multiples of a disk block in size (which you > have to use if you are wr

Re: Command which does not work anymore?

2011-12-05 Thread perryh
Dan Nelson wrote: > dd with a bs= option tells dd to use read() syscalls with a 10mb > size, but ssh is going to feed it data in much smaller chunks ... > Try using a smaller blocksize (8k or 4k), or use a buffering > program like ports/misc/team or misc/buffer just in front of your > dd command,

Re: Command which does not work anymore?

2011-12-05 Thread Dan Nelson
In the last episode (Dec 05), Patrick Lamaiziere said: > Hello, > > I'm using 9.0 and the command below does not work, as far I remember > that worked fine with 8.2: > > The goal is to copy an usb image from an OpenBSD host to an usb key on > my desktop via ssh. > > On openbsd: > # cat ucop2.img

Command which does not work anymore?

2011-12-05 Thread Patrick Lamaiziere
Hello, I'm using 9.0 and the command below does not work, as far I remember that worked fine with 8.2: The goal is to copy an usb image from an OpenBSD host to an usb key on my desktop via ssh. On openbsd: # cat ucop2.img | ssh patrick@xx dd of=/dev/da0 bs=10M dd: /dev/da0: Invalid argument 0+5