Bug 207177 - mount option <nofail> is unknown
Summary: mount option <nofail> is unknown
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-14 08:46 UTC by agniaus
Modified: 2016-02-14 09:53 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agniaus 2016-02-14 08:46:22 UTC
/etc/fstab
/dev/da2p1      /usr/home/hdd   ufs     rw,nofail      2       2

mount -a
mount option <nofail> is unknown: Invalid argument
Comment 1 Jonathan de Boyne Pollard 2016-02-14 09:42:47 UTC
(In reply to agniaus from comment #0)

The error message is correct.  This is not an option for the BSD mount command.  You are attempting to use a Linux idiosyncrasy.

The "nofail" option was invented in December 2007 for the Linux mount command by Matthias Koenig, Kay Sievers, and Karel Zak. (http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/414)

The FreeBSD mount command has a "failok" option, dating from base r222832 in June 2011.  This is documented in the fstab(5) manual page.  It isn't documented in mount(8), however; even though that is the command that actually implements it.
Comment 2 agniaus 2016-02-14 09:53:59 UTC
Sorry, I found this option through google by searching "freebsd mount nofail", google give me first result:
https://www.freebsd.org/cgi/man.cgi?query=mount&sektion=8&manpath=SuSE+Linux/i386+11.3
Only now I notice that this manual not for freebsd mount :)