misc/76298: fstab doesn't pass mntops properly
Bart Kus
eo at shell-server.com
Sat Jan 15 14:40:29 PST 2005
>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 at 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 at jo:~]# tail -2 /etc/exports
/usr/home/autocvs/src /usr/home/autocvs/ports -ro
[root at jo:~]#
>How-To-Repeat:
[root at jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs -T 0 0
[root at 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 at jo:~]#
>Fix:
[root at jo:~]# tail -1 /etc/fstab
jo:/usr/home/autocvs/ports /root/test nfs ro,-T 0 0
[root at jo:~]# mount -a
[root at jo:~]# df -h | tail -1
jo:/usr/home/autocvs/ports 17G 3.6G 12G 24% /root/test
[root at jo:~]#
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list