Disable the floppy device /dev/fd0 on Linux

If an unused floppy controller produces /dev/fd0 errors, prevent automatic loading of its kernel module and check firmware settings if needed.

Disable the floppy device /dev/fd0 on Linux

If an unused floppy drive produces errors or unwanted log messages at /dev/fd0, you can prevent its kernel module from loading automatically. The following steps describe the Ubuntu/Debian method.

  1. Edit a modprobe configuration file using a text editor:

    sudo nano /etc/modprobe.d/blacklist.conf
  2. Add the following line to prevent automatic loading of the floppy module:

    blacklist floppy
  3. Save the file. In nano, press Ctrl+X, confirm with Y and press Enter.

  4. Depending on your system, rebuild the initramfs so the setting applies early during boot:

    sudo update-initramfs -u
  5. Restart the system to test the change:

    sudo reboot

After rebooting, check whether the module still loads and whether /dev/fd0 errors have stopped. A blacklist does not necessarily block explicit module loading.

If the controller still appears or causes problems, check whether your BIOS/UEFI has an option to disable it.

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0