Date: Thu, 21 Aug 2003 15:29:28 -0400 From: Brian Reichert <reichert@numachi.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-hackers@freebsd.org Subject: Re: dd to floppies broken? Message-ID: <20030821192928.GO85538@numachi.com> In-Reply-To: <20030821184256.GA82969@dan.emsphone.com> References: <20030821183421.GN85538@numachi.com> <20030821184256.GA82969@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <reichert@numachi.com> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030821192928.GO85538>