floppy.rst 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. =============
  2. Floppy Driver
  3. =============
  4. FAQ list:
  5. =========
  6. A FAQ list may be found in the fdutils package (see below), and also
  7. at <https://fdutils.linux.lu/faq.html>.
  8. LILO configuration options (Thinkpad users, read this)
  9. ======================================================
  10. The floppy driver is configured using the 'floppy=' option in
  11. lilo. This option can be typed at the boot prompt, or entered in the
  12. lilo configuration file.
  13. Example: If your kernel is called linux-2.6.9, type the following line
  14. at the lilo boot prompt (if you have a thinkpad)::
  15. linux-2.6.9 floppy=thinkpad
  16. You may also enter the following line in /etc/lilo.conf, in the description
  17. of linux-2.6.9::
  18. append = "floppy=thinkpad"
  19. Several floppy related options may be given, example::
  20. linux-2.6.9 floppy=daring floppy=two_fdc
  21. append = "floppy=daring floppy=two_fdc"
  22. If you give options both in the lilo config file and on the boot
  23. prompt, the option strings of both places are concatenated, the boot
  24. prompt options coming last. That's why there are also options to
  25. restore the default behavior.
  26. Module configuration options
  27. ============================
  28. If you use the floppy driver as a module, use the following syntax::
  29. modprobe floppy floppy="<options>"
  30. Example::
  31. modprobe floppy floppy="omnibook messages"
  32. If you need certain options enabled every time you load the floppy driver,
  33. you can put::
  34. options floppy floppy="omnibook messages"
  35. in a configuration file in /etc/modprobe.d/.
  36. The floppy driver related options are:
  37. floppy=asus_pci
  38. Sets the bit mask to allow only units 0 and 1. (default)
  39. floppy=daring
  40. Tells the floppy driver that you have a well behaved floppy controller.
  41. This allows more efficient and smoother operation, but may fail on
  42. certain controllers. This may speed up certain operations.
  43. floppy=0,daring
  44. Tells the floppy driver that your floppy controller should be used
  45. with caution.
  46. floppy=one_fdc
  47. Tells the floppy driver that you have only one floppy controller.
  48. (default)
  49. floppy=two_fdc / floppy=<address>,two_fdc
  50. Tells the floppy driver that you have two floppy controllers.
  51. The second floppy controller is assumed to be at <address>.
  52. This option is not needed if the second controller is at address
  53. 0x370, and if you use the 'cmos' option.
  54. floppy=thinkpad
  55. Tells the floppy driver that you have a Thinkpad. Thinkpads use an
  56. inverted convention for the disk change line.
  57. floppy=0,thinkpad
  58. Tells the floppy driver that you don't have a Thinkpad.
  59. floppy=omnibook / floppy=nodma
  60. Tells the floppy driver not to use Dma for data transfers.
  61. This is needed on HP Omnibooks, which don't have a workable
  62. DMA channel for the floppy driver. This option is also useful
  63. if you frequently get "Unable to allocate DMA memory" messages.
  64. Indeed, dma memory needs to be continuous in physical memory,
  65. and is thus harder to find, whereas non-dma buffers may be
  66. allocated in virtual memory. However, I advise against this if
  67. you have an FDC without a FIFO (8272A or 82072). 82072A and
  68. later are OK. You also need at least a 486 to use nodma.
  69. If you use nodma mode, I suggest you also set the FIFO
  70. threshold to 10 or lower, in order to limit the number of data
  71. transfer interrupts.
  72. If you have a FIFO-able FDC, the floppy driver automatically
  73. falls back on non DMA mode if no DMA-able memory can be found.
  74. If you want to avoid this, explicitly ask for 'yesdma'.
  75. floppy=yesdma
  76. Tells the floppy driver that a workable DMA channel is available.
  77. (default)
  78. floppy=nofifo
  79. Disables the FIFO entirely. This is needed if you get "Bus
  80. master arbitration error" messages from your Ethernet card (or
  81. from other devices) while accessing the floppy.
  82. floppy=usefifo
  83. Enables the FIFO. (default)
  84. floppy=<threshold>,fifo_depth
  85. Sets the FIFO threshold. This is mostly relevant in DMA
  86. mode. If this is higher, the floppy driver tolerates more
  87. interrupt latency, but it triggers more interrupts (i.e. it
  88. imposes more load on the rest of the system). If this is
  89. lower, the interrupt latency should be lower too (faster
  90. processor). The benefit of a lower threshold is less
  91. interrupts.
  92. To tune the fifo threshold, switch on over/underrun messages
  93. using 'floppycontrol --messages'. Then access a floppy
  94. disk. If you get a huge amount of "Over/Underrun - retrying"
  95. messages, then the fifo threshold is too low. Try with a
  96. higher value, until you only get an occasional Over/Underrun.
  97. It is a good idea to compile the floppy driver as a module
  98. when doing this tuning. Indeed, it allows to try different
  99. fifo values without rebooting the machine for each test. Note
  100. that you need to do 'floppycontrol --messages' every time you
  101. re-insert the module.
  102. Usually, tuning the fifo threshold should not be needed, as
  103. the default (0xa) is reasonable.
  104. floppy=<drive>,<type>,cmos
  105. Sets the CMOS type of <drive> to <type>. This is mandatory if
  106. you have more than two floppy drives (only two can be
  107. described in the physical CMOS), or if your BIOS uses
  108. non-standard CMOS types. The CMOS types are:
  109. == ==================================
  110. 0 Use the value of the physical CMOS
  111. 1 5 1/4 DD
  112. 2 5 1/4 HD
  113. 3 3 1/2 DD
  114. 4 3 1/2 HD
  115. 5 3 1/2 ED
  116. 6 3 1/2 ED
  117. 16 unknown or not installed
  118. == ==================================
  119. (Note: there are two valid types for ED drives. This is because 5 was
  120. initially chosen to represent floppy *tapes*, and 6 for ED drives.
  121. AMI ignored this, and used 5 for ED drives. That's why the floppy
  122. driver handles both.)
  123. floppy=unexpected_interrupts
  124. Print a warning message when an unexpected interrupt is received.
  125. (default)
  126. floppy=no_unexpected_interrupts / floppy=L40SX
  127. Don't print a message when an unexpected interrupt is received. This
  128. is needed on IBM L40SX laptops in certain video modes. (There seems
  129. to be an interaction between video and floppy. The unexpected
  130. interrupts affect only performance, and can be safely ignored.)
  131. floppy=broken_dcl
  132. Don't use the disk change line, but assume that the disk was
  133. changed whenever the device node is reopened. Needed on some
  134. boxes where the disk change line is broken or unsupported.
  135. This should be regarded as a stopgap measure, indeed it makes
  136. floppy operation less efficient due to unneeded cache
  137. flushings, and slightly more unreliable. Please verify your
  138. cable, connection and jumper settings if you have any DCL
  139. problems. However, some older drives, and also some laptops
  140. are known not to have a DCL.
  141. floppy=debug
  142. Print debugging messages.
  143. floppy=messages
  144. Print informational messages for some operations (disk change
  145. notifications, warnings about over and underruns, and about
  146. autodetection).
  147. floppy=silent_dcl_clear
  148. Uses a less noisy way to clear the disk change line (which
  149. doesn't involve seeks). Implied by 'daring' option.
  150. floppy=<nr>,irq
  151. Sets the floppy IRQ to <nr> instead of 6.
  152. floppy=<nr>,dma
  153. Sets the floppy DMA channel to <nr> instead of 2.
  154. floppy=slow
  155. Use PS/2 stepping rate::
  156. PS/2 floppies have much slower step rates than regular floppies.
  157. It's been recommended that take about 1/4 of the default speed
  158. in some more extreme cases.
  159. Supporting utilities and additional documentation:
  160. ==================================================
  161. Additional parameters of the floppy driver can be configured at
  162. runtime. Utilities which do this can be found in the fdutils package.
  163. This package also contains a new version of mtools which allows to
  164. access high capacity disks (up to 1992K on a high density 3 1/2 disk!).
  165. It also contains additional documentation about the floppy driver.
  166. The latest version can be found at fdutils homepage:
  167. https://fdutils.linux.lu
  168. The fdutils releases can be found at:
  169. https://fdutils.linux.lu/download.html
  170. http://www.tux.org/pub/knaff/fdutils/
  171. ftp://metalab.unc.edu/pub/Linux/utils/disk-management/
  172. Reporting problems about the floppy driver
  173. ==========================================
  174. If you have a question or a bug report about the floppy driver, mail
  175. me at Alain.Knaff@poboxes.com . If you post to Usenet, preferably use
  176. comp.os.linux.hardware. As the volume in these groups is rather high,
  177. be sure to include the word "floppy" (or "FLOPPY") in the subject
  178. line. If the reported problem happens when mounting floppy disks, be
  179. sure to mention also the type of the filesystem in the subject line.
  180. Be sure to read the FAQ before mailing/posting any bug reports!
  181. Alain
  182. Changelog
  183. =========
  184. 10-30-2004 :
  185. Cleanup, updating, add reference to module configuration.
  186. James Nelson <james4765@gmail.com>
  187. 6-3-2000 :
  188. Original Document