CentOS 5: end_request I/O error on fd0
Diagnose and disable the floppy module to clear the end_request I/O error on /dev/fd0 on CentOS 5.
On CentOS 5, the kernel can log end_request: I/O error, dev fd0, sector 0. This message usually appears when the floppy module is loaded without a floppy drive present, for example on a virtual machine. For the original method, see the cyberciti.biz article.
Diagnosis
Check whether the module is loaded and read the kernel messages:
lsmod | grep -i floppy
modinfo floppy
dmesg
dmesg -T
grep 'I/Oerror' /var/log/messages
tail -f /var/log/messages
Disable the module
Unload the module immediately:
sudo rmmod floppy
To keep the module from loading at boot, add a blacklist rule, for example:
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
Then restart the system with reboot.
Notes
modinfoneeds the module name:floppyis given here (the source note did not specify it).- The
greppattern is written'I/Oerror'in the source note. The kernel message containsI/O error(with a space), so use that pattern to find it. - The source note wrote
floopyinstead offloppyin the unload command; the correct name is used here.