From owner-freebsd-questions@freebsd.org Sun Jan 7 02:30:47 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 623DEE5DC4C for ; Sun, 7 Jan 2018 02:30:47 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-ua0-x22a.google.com (mail-ua0-x22a.google.com [IPv6:2607:f8b0:400c:c08::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1341D6F156 for ; Sun, 7 Jan 2018 02:30:47 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-ua0-x22a.google.com with SMTP id e39so4827047uae.12 for ; Sat, 06 Jan 2018 18:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VLqTthAYfa6feC4e0sYo8U/OAxZz3KlRLSUBttkayOw=; b=hlmkfvESu5pUyudcc7MEEQyI0QO8HVzJt42k+wb5etX2SCCjC5BX9SR4Z130YNag3X +Pu2fXCOfPwIsRhKuHYO974w5jR47xZ4ZB0VLY1/hW3dwCtONDDgo917qTHu7W9V1m8R nNvx2UgiQgQoMkdSIwYpbfovOpprPGiAzUCyXtWUo8mo3rSYkHNmT7oo1CZqUtYm5XYQ t4Z2rT6tYmlOpbcrON8f/g5LBS7KwWd/lWsF+8wfyYb6lfCOoFKqQdf/1tALMrCv5FIL uGfUA0ujpXNZ46N/PzAd/qxGgabA5GGhpYD6i5c5E6fnXyvd6a7ycPv3a0URkTX3C12D sucA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VLqTthAYfa6feC4e0sYo8U/OAxZz3KlRLSUBttkayOw=; b=P9ejNHHqZy3LnPxTbtV3MPAGSAQoVdLPh787XHzM/5xA02wnTwGDqg+B2rE7W4M59n RDTUco7R18WBFmBe1Wr13Wzn33nXVDIdBIvVzpq2C2OyZmB7suu+AjVqzkdC3DfxC8rr Z7hUviCM/LM/Wg8V3gjlu/ejR/ymqCWUTlDbNfH/wnyVGdBgp/6ILwzxoi03lrRjD8tM +m753Sgy5C9J1YB1Ix+BgnnnA2L1D8hSEwHs8OhzngjRPjeV95OGjeeVCZ/xQG0RHflN r6dpR2/EL7w+ZAN4avC5KyOD/OWKqrhY5s9nwNyAvyZe1bNIqaiQas+K8ReFAlmFq5D9 6o4w== X-Gm-Message-State: AKGB3mLG1bT4zpuu/hTYH31ie2bGhLj0E3UkL3oik31IMhg1kD/iZEni oCjqdM6bFNqY7oA1/uw4J4bOMaZm0WuzAE+n6HU= X-Google-Smtp-Source: ACJfBosSldAJ0FK31vTGDXw75gSMbABzYbL8mbgSCYbEhBxoSL2X7JflF9aKKbDaUW7bThYP2BJyiK8h1yUQM7n1uEo= X-Received: by 10.176.19.201 with SMTP id n9mr7702522uae.16.1515292245723; Sat, 06 Jan 2018 18:30:45 -0800 (PST) MIME-Version: 1.0 References: <35571809-560c-1bbd-376f-45e59789e6cc@yahoo.com> In-Reply-To: <35571809-560c-1bbd-376f-45e59789e6cc@yahoo.com> From: Ben Woods Date: Sun, 07 Jan 2018 02:30:35 +0000 Message-ID: Subject: Re: mount -a problem with /etc/fstab To: Per Gunnarsson Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 02:30:47 -0000 On Sat, 6 Jan 2018 at 3:50 am, Per Gunnarsson via freebsd-questions < freebsd-questions@freebsd.org> 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: https://man.freebsd.org/fstab =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 sync,noatime,-m=3D644,-M=3D755,-u=3Dfoo,-g=3Dbar in the option field of *fstab*.=E2=80=9D Regards, Ben --=20 -- From: Benjamin Woods woodsb02@gmail.com