Bug 2222311 - cannot load floppy kernel module
Summary: cannot load floppy kernel module
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-12 14:51 UTC by René Genz
Modified: 2023-07-24 09:19 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-24 09:19:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description René Genz 2023-07-12 14:51:04 UTC
Description of problem:
I cannot load "floppy" kernel module. I use a USB-A-connected floppy disk drive (NEC, model: UF0002, USB FLOPPY DISK DRIVE UNIT).

Version-Release number of selected component (if applicable):
Tested with Fedora Workstation 36 (DVD Live image) and 38 (kernel 6.3.12).

How reproducible:
easy, 100%

Steps to Reproduce:
1. $ sudo dnf install -y kernel-modules kernel-modules-extra
2. reboot computer and plug in USB-A floppy drive
3. $ sudo modprobe floppy

Actual results:
File exist: /lib/modules/6.3.12-200.fc38.x86_64/kernel/drivers/block/floppy.ko.xz
Output in terminal: modprobe: ERROR: could not insert 'floppy': No such device
Module not loaded according to `lsmod | grep floppy`.

Expected results:
floppy module loaded

Additional info:
Computer with Microsoft Windows 10 Enterprise can use floppy disk drive.

Information about floppy disk drive:
$ sudo lsusb -v

Bus 004 Device 003: ID 0409:0040 NEC Corp. Floppy
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0409 NEC Corp.
  idProduct          0x0040 Floppy
  bcdDevice            1.50
  iManufacturer           1 NEC
  iProduct                2 NEC USB UF000x
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0027
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      4 Floppy (UFI)
      bInterfaceProtocol      0 Control/Bulk/Interrupt
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval             127
Device Status:     0x0000
  (Bus Powered)


Verbose kernel module loading:
$ sudo modprobe -v floppy
insmod /lib/modules/6.3.12-200.fc38.x86_64/kernel/drivers/block/floppy.ko.xz
modprobe: ERROR: could not insert 'floppy': No such device


If the floppy kernel module file is missing you get output similar to:
# modprobe floppy
modprobe: FATAL: Module floppy not found in directory /lib/modules/6.2.15-300.fc38.x86_64

Comment 1 Yauheni Kaliuta 2023-07-19 22:09:40 UTC
Not a kmod problem

Comment 2 Eugene Syromiatnikov 2023-07-20 11:34:04 UTC
floppy kmod implements a driver for FDCs (and the ENODEV suggests that machine does not have any) and not UFI devices, for a UFI device one needs the usb-storage kmod.

Comment 3 René Genz 2023-07-24 09:19:11 UTC
Thank you Eugene. Indeed there was no problem. My confusion is resolved. usb-storage kmod is provided by kernel-modules-core package and gets loaded automatically (`lsmod` -> usb_storage); floppy drive recognized automatically as /dev/sda.


Note You need to log in before you can comment on or make changes to this bug.