Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2001 00:55:30 -0500
From:      Mike Meyer <mwm@mired.org>
To:        <joerg@FreeBSD.org>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/20725: Raw floppy writes fail for partial bytes.
Message-ID:  <15222.6738.319729.986142@guru.mired.org>
In-Reply-To: <200108101249.f7ACnWi99159@freefall.freebsd.org>
References:  <200108101249.f7ACnWi99159@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <URL: http://www.uruk.org/orig-grub/install.html > -
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.

	<mike
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15222.6738.319729.986142>