32

Is it possible to make Linux kernel completely ignore the floppy disk controller? I do not have the drive but obviously my motherboard does contain the controller. I would like to disable the /dev/fd0 device node somehow to avoid Thunar and other tools detecting it and probing it.

wilx
  • 558
  • 1
  • 5
  • 10

3 Answers3

49

On Ubuntu, the floppy driver is loaded as a module. You can blacklist this module so it doesn't get loaded:

echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo rmmod floppy
sudo update-initramfs -u

Immediately and upon rebooting, the floppy driver should be banished for good.

Jim Paris
  • 14,137
  • 5
  • 36
  • 35
8

The presence or absence of a floppy drive is something that is configured in the system's BIOS. You have to manually tell the BIOS what type of floppy you have, and it in turn tells the OS. This is because the hardware is not actually capable of being auto detected.

So you need to go into your BIOS and tell it that you have no floppy.

psusi
  • 17,007
  • 3
  • 40
  • 51
0

I ran into this problem even using a V>! Host= Windows Server 2012 Essentials. Guest = Linux Mint 14. Hardware = HP Proliant ML350, no floppy drive. Problem did not occur in any other guest.

VMware WS 9. Define Linux Mint as Ubuntu 64. Remove virtual floppy drive before installing from ISO.

Error reported = Error mounting system managed device /dev/fd0. Command line ... /media/flopp0 exited with non-zero . /dev/fd0 is not a valid block device.

/dev/fd0 was attempting a mount in fstab. /dev/fd0 existed. /media/floppy and /media/floppy exist. Removed /dev/fd0 from fstab. Remove floppy and floppy0 directories (with sudo of course).

Reboot - same error /dev/fd0 and /media/floppy were recreated.

Used the command above. Rebooted. No error.

rbrito
  • 412
  • 3
  • 13
  • 1
    This answer of yours is more like a comment on the answer of the other person than a proper answer to the question. It would be good to "relocate" it. – rbrito Nov 13 '12 at 08:29
  • 1
    I think the answer being suggested here is to remove `/dev/fd0` from `/etc/fstab`. I don't think that actually addresses the original question, since `fstab` is not entirely related to GUI environment auto-mounting. – jw013 Nov 13 '12 at 17:30