Buffer I/O error on device fd0, logical block 0 error and simply soultion

I am a new Linux user and sysadmin. We have a CentOS 5.x/6.x server and Ubuntu/Debian Linux desktop running on Dell server hardware. I am getting the following error message in my /var/log/messages file (some time message is also display on the console). Durning Linux box startup and boot time I see many of the following messages on screen and it is driving me crazy:

Jul 05 12:04:05 dell01 kernel: end_request: I/O error, dev fd0, sector 0
Jul 05 12:04:05 dell01 kernel: Buffer I/O error on device fd0, logical block 0
Jul 05 12:04:18 dell01 kernel: end_request: I/O error, dev fd0, sector 0
Jul 05 12:04:18 dell01 kernel: Buffer I/O error on device fd0, logical block 0
Jul 05 12:04:30 dell01 kernel: end_request: I/O error, dev fd0, sector 0
Jul 05 12:04:42 dell01 kernel: end_request: I/O error, dev fd0, sector 0

What do they mean? How do I fix this problem on Linux based system?

A floppy disk is nothing but disk storage composed of a disk of thin and flexible magnetic storage medium. Floppy disks are read and written by a FDD (Floppy Disk Drive). This message appears when you do not have a floppy drive attached to the Linux server or VM or cloud server. Solution is quite simple just disable driver for floppy and reboot the system. You can verify this with the following command (this solution works with RHEL, CentOS, Redhat, Ubuntu/Debian and other Linux distros) :
# lsmod | grep -i floppy
Sample outputs:

floppy                 95465  0

The error look as follows on screen:

Fixing Buffer I/O error on device fd0, logical block 0

Open file called /etc/modprobe.d/my-blacklist.conf:
# vi /etc/modprobe.d/my-blacklist.conf
Listing a module (driver name) in this file prevents the hotplug scripts from loading it. Usually that’d be so that some other driver will bind it instead, no matter which driver happens to get probed first. Sometimes user mode tools can also control driver binding. Append the following line:
blacklist floppy
Save and close the file. Now reboot the Linux server:
# reboot
Once rebooted you can verify it:
# dmesg
# dmesg -T

Or use the grep command/cat command or tail command:
# grep 'I/O error' /var/log/messages
# tail -f /var/log/messages

How to fix “kernel: end_request: I/O error, dev fd0, sector 0” without rebooting the Linux box

Run the following modprobe command or rm command as root user:
# modprobe -r floopy
OR
# rmmod floopy

Disable Floppy Disk Drive in BIOS

If you do not use floppy drive, disable it in your BIOS too:

  1. When you boot the server or computer visit BIOS by pressing F2 or DEL as per version of BIOS
  2. Find BIOS section that list various peripherals or drives such as floppy, USB, hard disk
  3. Disable floppy (often called as Drive A in older systems)
  4. Save and exit from BIOS settings

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.