From owner-freebsd-questions@FreeBSD.ORG Tue Dec 6 13:10:35 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997F61065672 for ; Tue, 6 Dec 2011 13:10:35 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB788FC08 for ; Tue, 6 Dec 2011 13:10:34 +0000 (UTC) Received: from baby-jane.lamaiziere.net (mr129166.cri.univ-rennes1.fr [129.20.129.166]) by smtp.lamaiziere.net (Postfix) with ESMTPA id A066BFAA31A5; Tue, 6 Dec 2011 14:10:33 +0100 (CET) Received: from mr129166 (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id B922473A21; Tue, 6 Dec 2011 14:09:48 +0100 (CET) Date: Tue, 6 Dec 2011 14:09:48 +0100 From: Patrick Lamaiziere To: Dan Nelson Message-ID: <20111206140948.08e5af9d@mr129166> In-Reply-To: <20111205173845.GA53453@dan.emsphone.com> References: <20111205105130.161fc78a@mr129166> <20111205173845.GA53453@dan.emsphone.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: FreeBSD Subject: Re: Command which does not work anymore? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 13:10:35 -0000 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 writing directly to a raw disk device). The > "0+5 records in/0+4 records out" lines say that dd read 5 blocks of > data (but they were less than 10mb), and wrote 4 blocks (again less > than 10mb). 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, so that dd always sees block-sized writes from > its stdin stream. > > If that command worked in 8.2, it was just by accident. Ah ok! Thanks a lot for the explanation. Regards.