Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Jan 2018 02:30:35 +0000
From:      Ben Woods <>
To:        Per Gunnarsson <>
Subject:   Re: mount -a problem with /etc/fstab
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 6 Jan 2018 at 3:50 am, Per Gunnarsson via freebsd-questions <> wrote:

> When I try mount -a I get:
> fstab: /etc/fstab:9: Inappropriate file type or format
> fstab: /etc/fstab:10: Inappropriate file type or format
> My fstab below:
> /dev/ada0p2     /               ufs     rw      1       1
> /dev/ada0p3     none            swap    sw      0       0
> /dev/ada0p4     /tmp            ufs     rw      2       2
> /dev/ada0p5     /var            ufs     rw      2       2
> /dev/ada0p6     /usr            ufs     rw      2       2
> /dev/ada0p7     /home           ufs     rw      2       2
> /dev/linux_lvm/konjak-vg-root   /debian/root ext4
> mountprog=3D/usr/local/bin/ext4fuse allow_other,ro 0 0
> /dev/linux_lvm/konjak-vg-home   /debian/home ext4
> mountprog=3D/usr/local/bin/ext4fuse allow_other,ro 0 0

Whilst I am not sure about the legitimacy of these lines in general, I
believe you should have a comma instead of a space between the end of the
mountprog option and the allow_other option.

See the fstab(5) manpage:

=E2=80=9Dfields on each line are separated by tabs or spaces.=E2=80=9D

=E2=80=9CThe fourth field, (*fs*_*mntops*), describes the mount options ass=
ociated with
the file system. It is formatted as a comma separated list of options. It
contains at least the type of mount (see *fs*_*type* below) plus any
additional options appropriate to the file system type. See the options
flag (*-o*) in the mount(8)
page and the file system specific page, such as mount_nfs(8)
for additional options that may be specified. All options that can be given
to the file system specific mount commands can be used in *fstab* as well.
They just need to be formatted a bit differently. The arguments of the *-o*
option can be used without the preceding *-o* flag. Other options need both
the file system specific flag and its argument, separated by an equal sign.

For example, mounting an msdosfs(5)
filesystem, the options

    -o sync -o noatime -m 644 -M 755 -u foo -g bar

should be written as


in the option field of *fstab*.=E2=80=9D


From: Benjamin Woods

Want to link to this message? Use this URL: <>