2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH FD 7D "Mar 2, 2007"
8 fd, fdc \- drivers for floppy disks and floppy disk controllers
24 \fB/dev/diskette[0-1]\fR
29 \fB/dev/rdiskette[0-1]\fR
35 The \fBfd\fR and \fBfdc\fR drivers provide the interfaces to floppy disks using
36 the Intel 8272, Intel 82077, NEC 765, or compatible disk controllers on x86
40 The default partitions for the floppy driver are:
47 All cylinders except the last
56 Only the last cylinder
70 The \fBfd\fR driver autosenses the density of the diskette.
73 When the floppy is first opened the driver looks for a SunOS label in logical
74 block 0 of the diskette. If attempts to read the SunOS label fail, the open
75 will fail. If block 0 is read successfully but a SunOS label is not found,
76 auto-sensed geometry and default partitioning are assumed.
79 The \fBfd\fR driver supports both block and raw interfaces.
82 The block files (\fB/dev/diskette*\fR) access the diskette using the system's
83 normal buffering mechanism and may be read and written without regard to
84 physical diskette records.
87 There is also a raw (\fB/dev/rdiskette*\fR) interface that provides for direct
88 transmission between the diskette and the user's read or write buffer. A single
89 \fBread\fR(2) or \fBwrite\fR(2) call usually results in one I/O operation;
90 therefore raw I/O is considerably more efficient when larger blocking factors
91 are used. A blocking factor of no less than 8 Kbytes is recommended. See the
92 Notes section, below, for information on the number of sectors per track.
96 For 3.5" double-sided diskettes, the following densities are supported:
101 \fB1.7 Mbyte density\fR
104 80 cylinders, 21 sectors per track, 1.7 Mbyte capacity
113 80 cylinders, 18 sectors per track, 1.44 Mbyte capacity
122 80 cylinders, 9 sectors per track, 720 Kbyte capacity
129 \fBextended density\fR
132 80 cylinders, 36 sectors per track, 2.88 Mbyte capacity
138 \fB1.7 Mbyte density\fR
141 80 cylinders, 21 sectors per track, 1.7 Mbyte capacity
150 80 cylinders, 18 sectors per track, 1.44 Mbyte capacity
159 80 cylinders, 9 sectors per track, 760 Kbyte capacity
162 .SS "5.25" Diskettes"
165 For 5.25" double-sided diskettes on x86 platforms, the densities listed below
170 5.25" diskettes are not supported on SPARC platforms.
178 80 cylinders, 15 sectors per track, 1.2 Mbyte capacity
187 40 cylinders, 9 sectors per track, 360 Kbyte capacity
196 40 cylinders, 8 sectors per track, 320 Kbyte capacity
205 80 cylinders, 9 sectors per track, 720 Kbyte capacity
214 40 cylinders, 16 sectors per track (256 bytes per sector), 320 Kbyte capacity
223 40 cylinders, 4 sectors per track (1024 bytes per sector), 320 Kbyte capacity
233 During opening, the partition has been opened for exclusive access and another
234 process wants to open the partition. Once open, this error is returned if the
235 floppy disk driver attempted to pass a command to the floppy disk controller
236 when the controller was busy handling another command. In this case, the
237 application should try the operation again.
246 An invalid address was specified in an ioctl command (see \fBfdio\fR(7I)).
255 The number of bytes read or written is not a multiple of the diskette's sector
256 size. This error is also returned when an unsupported command is specified
257 using the \fBFDIOCMD\fR ioctl command (see \fBfdio\fR(7I)).
266 During opening, the diskette does not have a label or there is no diskette in
267 the drive. Once open, this error is returned if the requested I/O transfer
268 could not be completed.
277 An attempt was made to write past the end of the diskette.
286 The floppy disk driver does not support the requested ioctl functions (see
296 The floppy disk device does not exist or the device is not ready.
305 The floppy disk device is opened for write access and the diskette in the drive
316 The floppy disk device does not support the requested ioctl function (
320 .SH X86 CONFIGURATION
323 The driver attempts to initialize itself using the information found in the
324 configuration file, \fB/platform/i86pc/kernel/drv/fd.conf\fR.
328 name="fd" parent="fdc" unit=0;
329 name="fd" parent="fdc" unit=1;
338 \fB\fB/platform/sun4u/kernel/drv/fd\fR\fR
348 \fB\fB/usr/include/sys/fdreg.h\fR\fR
352 structs and definitions for Intel 82072 and 82077 controllers
358 \fB\fB/usr/include/sys/fdvar.h\fR\fR
362 structs and definitions for floppy drivers
368 \fB\fB/dev/diskette\fR\fR
378 \fB\fB/dev/diskette0\fR\fR
388 \fB\fB/dev/rdiskette\fR\fR
398 \fB\fB/dev/rdiskette0\fR\fR
405 .SS "For ucb Compatibility"
409 \fB\fB/dev/fd0[a-c]\fR\fR
418 \fB\fB/dev/rfd0[a-c]\fR\fR
427 \fB\fB/dev/diskette0\fR\fR
430 directory containing volume management character device file
436 \fB\fB/dev/rdiskette0\fR\fR
439 directory containing the volume management raw character device file
445 \fB\fB/dev/aliases/floppy0\fR\fR
448 symbolic link to the entry in \fB/dev/rdiskette0\fR
455 \fB\fB/platform/i86pc/kernel/drv/fd\fR\fR
465 \fB\fB/platform/i86pc/kernel/drv/fd.conf\fR\fR
469 configuration file for floppy driver
475 \fB\fB/platform/i86pc/kernel/drv/fdc\fR\fR
479 floppy-controller driver module
485 \fB\fB/platform/i86pc/kernel/drv/fdc.con\fRf\fR
489 configuration file for the floppy-controller
495 \fB\fB/usr/include/sys/fdc.h\fR\fR
499 structs and definitions for x86 floppy devices
505 \fB\fB/usr/include/sys/fdmedia.h\fR\fR
509 structs and definitions for x86 floppy media
512 .SS "x86 First Drive"
516 \fB\fB/dev/diskette\fR\fR
525 \fB\fB/dev/diskette0\fR\fR
534 \fB\fB/dev/rdiskette\fR\fR
543 \fB\fB/dev/rdiskette0\fR\fR
549 .SS "For ucb Compatibility"
553 \fB\fB/dev/fd0[a-c]\fR\fR
562 \fB\fB/dev/rfd0[a-c]\fR\fR
571 \fB\fB/dev/diskette0\fR\fR
574 directory containing volume management character device file
580 \fB\fB/dev/rdiskette0\fR\fR
583 directory containing the volume management raw character device file
589 \fB\fB/dev/aliases/floppy0\fR\fR
592 symbolic link to the entry in /dev/rdiskette0
595 .SS "x86 Second Drive"
599 \fB\fB/dev/diskette1\fR\fR
608 \fB\fB/dev/rdiskette1\fR\fR
614 .SS "For ucb Compatibility"
618 \fB\fB/dev/fd1[a-c]\fR\fR
627 \fB\fB/dev/rfd1[a-c]\fR\fR
636 \fB\fB/dev/diskette1\fR\fR
639 directory containing volume management character device file
645 \fB\fB/dev/rdiskette1\fR\fR
648 directory containing the volume management raw character device file
654 \fB\fB/dev/aliases/floppy1\fR\fR
657 symbolic link to the entry in \fB/dev/rdiskette1\fR
663 \fBfdformat\fR(1), \fBdd\fR(1M), \fBdrvconfig\fR(1M), \fBread\fR(2),
664 \fBwrite\fR(2), \fBdriver.conf\fR(4), \fBdkio\fR(7I) \fBfdio\fR(7I)
670 \fB\fBfd<n>: <command name> failed (<sr1> <sr2> <sr3>)\fR\fR
674 The <command name> failed after several retries on drive <n>. The three hex
675 values in parenthesis are the contents of status register 0, status register 1,
676 and status register 2 of the Intel 8272, the Intel 82072, and the Intel 82077
677 Floppy Disk Controller on completion of the command, as documented in the data
678 sheet for that part. This error message is usually followed by one of the
679 following, interpreting the bits of the status register:
683 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
692 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
695 \fBcrc error blk <block number>\fR
697 There was a data error on <block number>.
703 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
712 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
721 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
724 \fBdrive not ready\fR
730 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
733 \fBunformatted diskette or no diskette in drive\fR
739 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
742 \fBblock <block number> is past the end!\fR
744 \fB(nblk=<total number of blocks>)\fR
746 The operation tried to access a block number that is greater than the total
753 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
756 \fBb_bcount 0x<op_size> not % 0x<sect_size>\fR
758 The size of an operation is not a multiple of the sector size.
764 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
767 \fBoverrun/underrun\fR
773 \fB\fBfd<\fR\fIn\fR\fB>:\fR\fR
776 \fBhost bus error\fR. There was a hardware error on a system bus.
784 Overrun/underrun errors occur when accessing a diskette while the system is
785 heavily loaded. Decrease the load on the system and retry the diskette access.
789 3.5" high density diskettes have 18 sectors per track and 5.25" high density
790 diskettes have 15 sectors per track. They can cross a track (though not a
791 cylinder) boundary without losing data, so when using \fBdd\fR(1M) or
792 \fBread\fR(2)/\fBwrite\fR(2) calls to or from the raw diskette, you should
793 specify \fBbs=18k\fR or multiples thereof for 3.5" diskettes, and \fBbs=15k\fR
794 or multiples thereof for 5.25" diskettes.
797 The SPARC \fBfd\fR driver is \fInot\fR an unloadable module.
800 Under Solaris (x86 Edition), the configuration of the floppy drives is
801 specified in \fBCMOS\fR configuration memory. Use the \fBBIOS\fR setup program
802 for the system to define the diskette size and density/capacity for each
803 installed drive. Note that \fBMS-DOS\fR may operate the floppy drives
804 correctly, even though the \fBCMOS\fR configuration may be in error. Solaris
805 (x86 Edition) relies on the \fBCMOS\fR configuration to be accurate.