From owner-freebsd-questions@freebsd.org Sun Jan 7 11:26:59 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 876C3E66F83 for ; Sun, 7 Jan 2018 11:26:59 +0000 (UTC) (envelope-from p.gunnarsson@yahoo.com) Received: from sonic308-18.consmr.mail.ir2.yahoo.com (sonic308-18.consmr.mail.ir2.yahoo.com [77.238.178.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2601982047 for ; Sun, 7 Jan 2018 11:26:58 +0000 (UTC) (envelope-from p.gunnarsson@yahoo.com) X-YMail-OSG: F2Lgps8VM1kEOrX2gw2QWU4orrrG5LM9Un_giQatme3g0qGdNYoN3_skTevDF.o zvOSE525pL5_bbrZ4yMxS12_6LGY8sQ4Y2gaavdk5oKE2o9u.i9wKZWa0s0p6_Y0IwhRH5BB109t m72ilvtosc3uGM6eOzctYjBDk7XNBzmWO2hURwY1FzwvzM3O01EizoS62BdT41eZGJU051S7Xs66 jkXV8o2hah3or7xpRDrXl1gdGlqcuDG3R0QymJmHd0CP1H.0jfXcCDuEiUxTloMjCzhkQCDpZqMy LSLV2SD.MndSpffLjrqOJJ00UzMFWq5WZ0NvmEPlSirfhUa4ClWetYc2xPYjg7odhTUnVBkTIYPn momyvagWehQpYBEUguwabmL9X54ENyN3W3j.E_loaHDrXqO08NpHKWdkBEznJHCIC3WdFJlSixOI Mpb2miOCFY84ZVsX8it0StYg59jYSSgmsMncGjQ8cJ2O_8x8LgTPGnRXOl6fWdMsVe.eC9BYYbbo FwIlTLcIksb4gDkATeJkRG0itFWOPOgzOgAbfNyk- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Sun, 7 Jan 2018 11:26:51 +0000 Received: from smtpgate103.mail.ir2.yahoo.com (EHLO [10.0.0.2]) ([217.146.188.6]) by smtp404.mail.ir2.yahoo.com (JAMES SMTP Server ) with ESMTPA ID afaa6e1c347d1b79cf476416c087650e for ; Sun, 07 Jan 2018 11:16:41 +0000 (UTC) Subject: Re: mount -a problem with /etc/fstab To: FreeBSD References: <35571809-560c-1bbd-376f-45e59789e6cc@yahoo.com> From: Per Gunnarsson Message-ID: Date: Sun, 7 Jan 2018 12:16:39 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2018 11:26:59 -0000 Thanks for the information! The last lines of my /etc/fstab now look like this: /dev/linux_lvm/konjak-vg-root   /debian/root ext4 mountprog=/usr/local/bin/ext4fuse,allow_other,ro /dev/linux_lvm/konjak-vg-home   /debian/home ext4 mountprog=/usr/local/bin/ext4fuse,allow_other,ro and now mount -a works :-) On 01/07/18 03:30, Ben Woods wrote: > 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=/usr/local/bin/ext4fuse allow_other,ro 0 0 > > /dev/linux_lvm/konjak-vg-home   /debian/home ext4 > mountprog=/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: > > https://man.freebsd.org/fstab > > ”fields on each line are separated by tabs or spaces.” > > > “The fourth field, (/fs/_/mntops/), describes the mount options > associated 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 > > sync,noatime,-m=644,-M=755,-u=foo,-g=bar > > in the option field of *fstab*.” > > > Regards, > Ben > -- > > -- > From: Benjamin Woods > woodsb02@gmail.com