I'm using a box with Debian that has gone through many updates (at least lenny, squeeze, wheezy).
After a long time, I wanted to mount a floppy again which didn't work as it used to. I found a tutorial explaining I had to comment out the line about /dev/fd0 in /etc/fstab because the floppy module was dropped from the kernel and isn't invoked during boot.
Link: How to enable your floppy driver, refers to Can't read Floppy Disks.
The fix works, I can mount the floppy just fine. But now, I'm curious.
The big question: Why does commenting out the line in /etc/fstab fix the problem? I thought the info in fstab just makes typing # mount commands easier, allows applications to find mounting info, and lets you omit stuff like -t and the mount point? Commenting out a line in /etc/fstab will surely not load a kernel module, or does it?! Do I really enable the floppy driver itself when modifying /etc/fstab?
EDIT, just to be sure...
After a good comment asked if this was really the behavior of my system, I double-checked.
With
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
in /etc/fstab, mounting doesn't work:
box:/home/zebonaut# mount -t vfat /dev/fd0 /media/floppy0/
box:/home/zebonaut# ls -l /media/floppy0
total 0
box:/home/zebonaut# umount /media/floppy0
umount: /media/floppy0: not mounted
box:/home/zebonaut#
With
#/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
in /etc/fstab, I can mount the floppy just fine:
box:/home/zebonaut# mount -t vfat /dev/fd0 /media/floppy0/
box:/home/zebonaut# ls -l /media/floppy0
total 1241
-rwxr-xr-x 1 root root 340498 Sep 5 2002 file.01
-rwxr-xr-x 1 root root 410952 Sep 5 2002 file.02
-rwxr-xr-x 1 root root 43008 Jan 23 2000 file.03
-rwxr-xr-x 1 root root 26060 Jan 6 2005 file.04
-rwxr-xr-x 1 root root 20992 Jan 19 2000 file.05
-rwxr-xr-x 1 root root 54784 May 14 1999 file.06
-rwxr-xr-x 1 root root 217600 Apr 15 2005 file.07
-rwxr-xr-x 1 root root 32256 Mar 23 2005 file.08
-rwxr-xr-x 1 root root 32768 Jan 20 2000 file.09
-rwxr-xr-x 1 root root 91136 Jan 20 2000 file.10
box:/home/zebonaut# umount /media/floppy0
box:/home/zebonaut#
It really is this strange. I can turn on or off my ability to mount the floppy by opening /etc/fstab with an editor and putting a # in front of the line with the floppy info.