Software & AppsOperating SystemLinux

How To Fix “print_req_error: I/O error” on Ubuntu Server

Ubuntu 21

If you’re working with an Ubuntu server and encounter the “print_req_error: I/O error, dev fd0, sector 0” error, you may find your system becoming unstable or experiencing lockups. This error is typically associated with the floppy drive and can be resolved through several methods. In this article, we’ll walk you through these solutions step-by-step.

Quick Answer

To fix the "print_req_error: I/O error" on Ubuntu Server, you can try disabling the floppy drive in the BIOS settings or blacklist the floppy module within the operating system. Additionally, checking and removing any invalid entries related to the floppy drive in the /etc/fstab file can help resolve the error. If these solutions don’t work, it’s recommended to remove the floppy drive from the VM configuration or check for any hardware issues. Remember to restart the server after making any changes.

Understanding the Error

The “print_req_error: I/O error, dev fd0, sector 0” error is typically related to issues with the floppy drive, which is denoted by ‘fd0’ in the error message. This error can cause your server to lock up, making it crucial to address promptly.

Solution 1: Disable the Floppy Drive in BIOS

One of the most straightforward solutions is to disable the floppy drive at the firmware level. This can be done through your Virtual Machine’s (VM) BIOS settings. If you’re using a platform like vSphere or ESXi, you can access these settings through the web interface. Disabling the floppy drive here ensures that it isn’t detected by the system, thus eliminating the error.

Solution 2: Blacklist the Floppy Module

If the first solution doesn’t work, or if you prefer to solve the issue within the operating system itself, you can blacklist the floppy module. This can be done by running the following commands:

sudo rmmod floppy
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo dpkg-reconfigure initramfs-tools

Here’s what each command does:

  • sudo rmmod floppy: This command removes the floppy disk module from the current kernel.
  • echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf: This command creates a new configuration file that blacklists the floppy module, preventing it from being loaded on boot.
  • sudo dpkg-reconfigure initramfs-tools: This command reconfigures packages that are critical to booting the system, ensuring that the changes take effect.

Solution 3: Check the /etc/fstab File

The /etc/fstab file contains all the necessary information to mount the filesystems. If there are any entries related to /dev/fd0 (the floppy drive), they could be causing the error. Open the file and comment out any such entries.

Solution 4: Remove Invalid Entries in /etc/fstab

Sometimes, the error might be due to invalid entries in the /etc/fstab file. These could be entries related to mounting hard disks that are no longer connected. Ensure that all entries in this file are valid.

Solution 5: Remove the Floppy Drive from VM Configuration

If you’re using VMware, you can remove the floppy drive from the VM’s configuration in the ESXi web interface. However, some users have reported that the floppy drive reappears after removal, so you might need to take additional steps to ensure it stays disabled.

Solution 6: Check for Hardware Issues

If none of the above solutions work, it might be worth checking for hardware issues. The error could be due to a faulty floppy drive or other hardware problems with the server itself.

Conclusion

The “print_req_error: I/O error, dev fd0, sector 0” error on an Ubuntu server can cause significant issues, including server lockups. However, by following the solutions outlined in this article, you should be able to resolve the error and ensure your server runs smoothly. Remember to restart your server after each change to ensure the modifications take effect.

How do I access the BIOS settings to disable the floppy drive?

To access the BIOS settings, restart your system and press the designated key (usually Del, F2, or F10) during the boot process. This will take you to the BIOS setup utility where you can disable the floppy drive.

What if I don’t have access to the BIOS settings?

If you’re using a virtual machine (VM) platform like vSphere or ESXi, you can access the BIOS settings through the web interface. Look for the VM settings or configuration options, and you should find an option to disable the floppy drive there.

How can I check if the floppy module is already blacklisted?

You can check if the floppy module is blacklisted by running the command cat /etc/modprobe.d/blacklist-floppy.conf. If the output shows "blacklist floppy," then the module is already blacklisted.

Do I need to restart my server after making changes to the /etc/fstab file?

Yes, it is recommended to restart your server after making changes to the /etc/fstab file to ensure that the modifications take effect.

How can I remove the floppy drive from the VM configuration in VMware?

To remove the floppy drive from the VM configuration in VMware, go to the ESXi web interface, find the VM’s settings, and look for the floppy drive option. Disable or remove the floppy drive from the configuration.

Leave a Comment

Your email address will not be published. Required fields are marked *