From owner-freebsd-bugs Sat Aug 11 22:55:34 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id 3D1B237B407 for ; Sat, 11 Aug 2001 22:55:31 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 63020 invoked by uid 100); 12 Aug 2001 05:55:30 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15222.6738.319729.986142@guru.mired.org> Date: Sun, 12 Aug 2001 00:55:30 -0500 To: Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/20725: Raw floppy writes fail for partial bytes. In-Reply-To: <200108101249.f7ACnWi99159@freefall.freebsd.org> References: <200108101249.f7ACnWi99159@freefall.freebsd.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org joerg@FreeBSD.org types: > Synopsis: Raw floppy writes fail for partial bytes. > > State-Changed-From-To: open->closed > State-Changed-By: joerg > State-Changed-When: Fri Aug 10 14:47:07 MEST 2001 > State-Changed-Why: > This is normal and expected behaviour for a `raw' device: all IO > requests need to be multiples of the hardware block size (typically > 512 bytes, but can be larger iff the medium block size is larger, like > for non-standard floppies, MO media, or CD-ROMs). While I don't object to this being closed, I'd like for a couple of comments to make it into the PR log. First, /dev/fd is historically not a raw device on FreeBSD, or Unix in general. This means that instructions written for Unix in general - like those at - which used to work on FreeBSD are no longer correct. This pr was filed because I noticed that this no longer worked. > Use a tool like tar or cpio when copying arbitrary stuff to raw > devices. Those can't be used to build a boot floppy. The correct tool for writing arbitrary data to a floppy is still dd, you just have to account for their being no cooked floppy device: dd if=TESTFILE of=/dev/fd0 bs=512 conv=sync which will pad the last input block. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message