Bug 192970 - [autofs] mount_msdosfs: %s: mount option <automounted> is unknown: Invalid argument
Summary: [autofs] mount_msdosfs: %s: mount option <automounted> is unknown: Invalid ar...
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-24 16:06 UTC by Jan Beich
Modified: 2014-08-24 19:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2014-08-24 16:06:47 UTC
$ mount_msdosfs -o automounted /nonexistent /mnt
mount_msdosfs: /nonexistent: mount option <automounted> is unknown: Invalid argument

$ cat /etc/auto_master
/media		auto_media

$ cat /etc/auto_media
da0 -fstype=msdosfs :/dev/&

$ ls /media/da0

$ automountd -d
automountd: waiting for request from the kernel
automountd: not forking due to -d flag; will exit after servicing a single request
automountd: got request 381: from map auto_media, path /media/da0/, prefix "/media", key "da0", options ""
automountd: parsing map "auto_media"
automountd: map "auto_media" maps to "/etc/auto_media"
automountd: done parsing map "auto_media"
automountd: found node defined at auto_media:1; it is a mountpoint
automountd: executing "mount -t msdosfs -o automounted /dev/da0 /media/da0/" as pid 7884
mount_msdosfs: /dev/da0: mount option <automounted> is unknown: Invalid argument
automountd: "mount -t msdosfs -o automounted /dev/da0 /media/da0/", pid 7884, terminated with exit status 1
automountd: mount failed
automountd: completing request 381 with error 5
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2014-08-24 17:13:52 UTC
Hm, it works for me:

[root@brick:/home/trasz/git/autofs/sys/fs]# mount -t msdosfs -o automounted /dev/md0 /mnt       
[root@brick:/home/trasz/git/autofs/sys/fs]# mount
/dev/ada0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
map -hosts on /net (autofs)
map -smb on /smb (autofs)
map -media on /media (autofs)
/dev/md0 on /mnt (msdosfs, local, automounted)

Are you sure you've rebuilt mount_msdos(8) binary after the autofs support was committed?
Comment 2 Jan Beich freebsd_committer freebsd_triage 2014-08-24 19:26:27 UTC
Hmm, you're right. I guess it was a remnant from experimenting with bug 192852.