From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 21 12:29:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31E1016A4C0 for ; Thu, 21 Aug 2003 12:29:32 -0700 (PDT) Received: from mail.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 3BE4243F93 for ; Thu, 21 Aug 2003 12:29:30 -0700 (PDT) (envelope-from reichert@numachi.com) Received: (qmail 33516 invoked from network); 21 Aug 2003 19:29:28 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 21 Aug 2003 19:29:28 -0000 Received: (qmail 18587 invoked by uid 1001); 21 Aug 2003 19:29:28 -0000 Date: Thu, 21 Aug 2003 15:29:28 -0400 From: Brian Reichert To: Dan Nelson Message-ID: <20030821192928.GO85538@numachi.com> References: <20030821183421.GN85538@numachi.com> <20030821184256.GA82969@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030821184256.GA82969@dan.emsphone.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: dd to floppies broken? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 19:29:32 -0000 On Thu, Aug 21, 2003 at 01:42:57PM -0500, Dan Nelson wrote: > You can only write full blocks to raw devices. The first file is > 84480/512 = 165 disk blocks on the dot. The second file is 164.8828125 > blocks, and that last fragment is why the dd is failing. Try adding > conv=osync to your dd line to tell it to pad the last block out. This does do it (thanks!), but I had to remove the 'bs=8192' clause for it to work. Hence: dd of=/dev/fd0 if=memtest86-3.0/precomp.bin conv=osync Does indeed work. Thanks a bunch; I would have assumed that block-padding would not have been an issue... > > -- > Dan Nelson > dnelson@allantgroup.com > -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large