Bug 219529 - mount not trying all file systems in /proc/filesystems
Summary: mount not trying all file systems in /proc/filesystems
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-13 19:14 UTC by frank a. madero
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-14 22:19:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
strace of mount (9.82 KB, text/plain)
2006-12-13 19:14 UTC, frank a. madero
no flags Details
fat.img (1.41 MB, application/octet-stream)
2006-12-14 16:34 UTC, frank a. madero
no flags Details

Description frank a. madero 2006-12-13 19:14:48 UTC
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.

Comment 1 frank a. madero 2006-12-13 19:14:48 UTC
Created attachment 143546 [details]
strace of mount

Comment 2 frank a. madero 2006-12-13 19:18:06 UTC
I am sorry the description should read "... /proc/filesystems ..." not "...
/mount/proc ..."

Comment 3 Karel Zak 2006-12-13 21:08:56 UTC
Which filesystem do you have on your device?

Comment 4 frank a. madero 2006-12-13 22:47:56 UTC
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
*


Comment 5 Karel Zak 2006-12-14 12:00:39 UTC
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


Comment 6 frank a. madero 2006-12-14 16:34:59 UTC
Created attachment 143655 [details]
fat.img

Comment 7 frank a. madero 2006-12-14 16:36:52 UTC
[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]# 


Comment 8 frank a. madero 2006-12-14 22:19:15 UTC
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


Note You need to log in before you can comment on or make changes to this bug.