Description of problem: When using the "mount" command to mount a floppy, the command fails to try all nodev filesystems in /mount/proc. Version-Release number of selected component (if applicable): util-linux-2.13-0.45.1.fc6 mount (util-linux 2.13-pre6) How reproducible: mount /dev/floppy-fd0 /mnt/usbdisk Steps to Reproduce: 1. 2. 3. Actual results: mount: you must specify the filesystem type Expected results: a mounted filesystem Additional info: I did an strace on the command and I am attaching the results. It clearly shows a single attempt to mount the floppy with a filesystem and then stops and according to the man page on mount "All of the filesystem types listed there will be tried, except for those that are labeled "nodev"...", "there" meaning /proc/filesystems. I compared this strace to another on a different distro and it tries different filesystems before quiting, thus sticking to the man page.
Created attachment 143546 [details] strace of mount
I am sorry the description should read "... /proc/filesystems ..." not "... /mount/proc ..."
Which filesystem do you have on your device?
fat on the floppy, it reads perfect on another distrobution as well as windows. here is some more input: [fmadero@esci15-97 ~]$ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cpuset nodev binfmt_misc nodev debugfs nodev securityfs nodev sockfs nodev usbfs nodev pipefs nodev futexfs nodev tmpfs nodev inotifyfs nodev eventpollfs nodev devpts ext2 nodev ramfs nodev hugetlbfs iso9660 nodev mqueue ext3 nodev autofs vfat hfsplus [fmadero@esci15-97 ~]$ cat /etc/filesystems *
The mount command uses unknown things from /proc/filesystems only. The vfat should be tested in previous step. Please, I need more information: # ls -la /dev/floppy-fd0 # blkid /dev/floppy-fd0 From the strace output it seems like an old FAT floppy without a magic string in superblock. Please, send me image of this disk: # cat /dev/floppy-fd0 > fat.img; bzip2 fat.img
Created attachment 143655 [details] fat.img
[root@esci15-97 util-linux-2.13-pre7]# ls -la /dev/floppy-fd0 lrwxrwxrwx 1 root root 3 Dec 12 17:58 /dev/floppy-fd0 -> fd0 [root@esci15-97 util-linux-2.13-pre7]# blkid /dev/floppy-fd0 [root@esci15-97 util-linux-2.13-pre7]#
The floppy I was using for the testing was working fine, I was able to mount it on other operating systems: linux, windows, etc... Today when trying to test it again on other operating systems found out it was not working any more, I don't know when this failure in the floppy occurred. Hence all seems to be working great, sorry for wasting anyone's time. I still think it was strange how within a span of a few minutes fedora couldn't mount a fat floppy yet gentoo and windows were able, anyway it works now. I will continue to moniter 'mount' on this box, after dredging through mount.c, and mount_guess_fstype.c I know what functions to step through if a problem like this occurs again. thanks frank