Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2005 22:34:05 GMT
From:      Bart Kus <eo@shell-server.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/76298: fstab doesn't pass mntops properly
Message-ID:  <200501152234.j0FMY5n1082709@www.freebsd.org>
Resent-Message-ID: <200501152240.j0FMeSGe076322@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         76298
>Category:       misc
>Synopsis:       fstab doesn't pass mntops properly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 15 22:40:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Bart Kus
>Release:        5.3-RELEASE
>Organization:
>Environment:
FreeBSD jo.shell-server.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
      It seems like there needs to be some kind of option in the mntops column of fstab from the "man mount" list under the -o section PRECEDING any "man mount_nfs" options.  Please notice the addition of the "ro," option below.  The exports line is:

[root@jo:~]# tail -2 /etc/exports  
/usr/home/autocvs/src /usr/home/autocvs/ports -ro

[root@jo:~]# 

>How-To-Repeat:
      [root@jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs -T 0 0
[root@jo:~]# mount test
fstab: /etc/fstab:7: Inappropriate file type or format
fstab: /etc/fstab:7: Inappropriate file type or format
mount: test: unknown special file or file system
[root@jo:~]#

>Fix:
      [root@jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs ro,-T 0 0
[root@jo:~]# mount -a
[root@jo:~]# df -h | tail -1
jo:/usr/home/autocvs/ports     17G    3.6G     12G    24%    /root/test
[root@jo:~]# 

>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501152234.j0FMY5n1082709>