From nobody@FreeBSD.org  Tue Dec  7 22:26:43 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F03C516A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2004 22:26:43 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C5C1843D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2004 22:26:43 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iB7MQhJ9093784
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Dec 2004 22:26:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iB7MQhUQ093783;
	Tue, 7 Dec 2004 22:26:43 GMT
	(envelope-from nobody)
Message-Id: <200412072226.iB7MQhUQ093783@www.freebsd.org>
Date: Tue, 7 Dec 2004 22:26:43 GMT
From: Richard Bejtlich <taosecurity@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with dd(1) and/or /dev/fd
X-Send-Pr-Version: www-2.3

>Number:         74827
>Category:       kern
>Synopsis:       [fdc] Problem writing data to floppies
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 22:30:32 GMT 2004
>Closed-Date:    
>Last-Modified:  Fri Jun 22 14:33:28 GMT 2007
>Originator:     Richard Bejtlich
>Release:        5.3 RELEASE
>Organization:
TaoSecurity
>Environment:
FreeBSD orr.taosecurity.com 5.3-SECURITY FreeBSD 5.3-SECURITY #0: Wed Dec  1 15:22:42 UTC 2004     root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I am unable to use dd(1) to create floppies from image files under FreeBSD
5.3 REL.  For example, I try to create boot.flp using dd(1).  First I test
the .flp file:

orr:/home/richard$ md5 boot.flp
MD5 (boot.flp) = 1ec944b87da4e2eef835439215348e64
orr:/home/richard$ grep boot.flp CHECKSUM.MD5 
MD5 (boot.flp) = 1ec944b87da4e2eef835439215348e64

orr:/root# dd if=boot.flp of=/dev/fd0
dd: /dev/fd0: Input/output error
37+0 records in
36+0 records out
18432 bytes transferred in 4.518355 secs (4079 bytes/sec)

This is a problem.  I then boot into FreeBSD 5.2.1 under FreeSBIE.  Using
the same floppy disk and same physical hardware, I am successful:

root@FreeSBIE:~# dd if=boot.flp of=/dev/fd0
2880+0 records in
2880+0 records out
1474560 bytes transferred in 48.104081 secs (30654 bytes/sec)
root@FreeSBIE:~# mount /dev/fd0 /mnt
root@FreeSBIE:~# ls /mnt
.snap           boot            kernel.gz.split
acpi.ko.gz      kernel.gz.boot  mfsroot.gz

I am able to mount floppies and read them under FreeBSD 5.3, however.

I have not had problems with earlier FreeBSD versions, until 5.3 REL.

Hardware is an IBM Thinkpad a20p.  

Thank you.
>How-To-Repeat:
Try to use dd(1) to create floppies under FreeBSD 5.3 REL.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Thu Jun 14 17:51:46 UTC 2007 
State-Changed-Why:  

To submitter:  Is this still a problem with more recent versions 
of FreeBSD? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74827 

From: linimon@lonesome.com (Mark Linimon)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/74827: [fdc] Problem writing data to floppies [5.3-specific]
Date: Fri, 15 Jun 2007 23:10:08 -0500

 ----- Forwarded message from Richard Bejtlich <taosecurity@gmail.com> -----
 
 Same problem on 6.1-SECURITY 26 Apr 07.  I even got a kernel panic
 when trying to write a test file to a MSDOS-formatted floppy.
 
 Thank you,
 
 Richard
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Jun 18 21:50:30 UTC 2007 
State-Changed-Why:  
Feedback received.  Apparently this is still a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=74827 
>Unformatted:
