Red Hat Bugzilla – Bug 219529
mount not trying all file systems in /proc/filesystems
Last modified: 2007-11-30 17:11:51 EST
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):
mount (util-linux 2.13-pre6)
mount /dev/floppy-fd0 /mnt/usbdisk
Steps to Reproduce:
mount: you must specify the filesystem type
a mounted filesystem
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 "...
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
[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]
[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
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.