From owner-freebsd-questions@FreeBSD.ORG Tue Oct 15 11:32:03 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4A5FD56C for ; Tue, 15 Oct 2013 11:32:03 +0000 (UTC) (envelope-from vsjcfm@gmail.com) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [IPv6:2607:f8b0:400e:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 29192270A for ; Tue, 15 Oct 2013 11:32:03 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id kl14so8822166pab.25 for ; Tue, 15 Oct 2013 04:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=/0LCcXlcb7Z6svFo0dKEtMRR4nhyryHyYs1YtN0Lj1A=; b=ESr08pwVhtptp7f48XdetGU85UbXXqDI09fkUhmLXwY61DTwOC+aexvyG5NvHZ1SBR zPpvn14P8GP/8QZ/pHQ4kLEm6pXcqDGc5CdkKeNcjBiiGrKqmm5vNTOXLziuMxBAx7vY 9ccEzvlM3B1d+cBAou5fAY0oX47v6HS7PsIS6Xt4QmekdiQ77LxeBSiAHFY8Q1zKmBNo /5/yR1mthACvycl9GZfeBpJMZ8v0fWoPsfSwcgFdVenQYFEycFGw/DgTyGyiD0w1wQk8 m43lIMT2GPRzoDnwK2duMwlcghouHZXVZD1JJDsQ1ZrcerZAm3tbOu07D+EtiJfhnv0u a6+Q== X-Received: by 10.68.143.74 with SMTP id sc10mr880712pbb.190.1381836722870; Tue, 15 Oct 2013 04:32:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.42.144 with HTTP; Tue, 15 Oct 2013 04:31:42 -0700 (PDT) From: Anton Sayetsky Date: Tue, 15 Oct 2013 11:31:42 +0000 Message-ID: Subject: [zfs] root mountpoint To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 11:32:03 -0000 Hello, I decided to install FreeBSD on ZFS root. In almost all guides i saw the following recommendation: zpool create -o altroot=/mnt zroot /dev/${device} zfs create zroot/var zfs create ... ... zfs set mountpoint=legacy zroot zfs set mountpoint=/var zroot/var zfs set mountpount=... ... reboot So we're setting mountpoins for all first-level childs of zroot. Why just don't use the following simpler setup, when mountpoint set only once: zpool create -o altroot=/mnt zroot /dev${device} zfs set mountpoint=/ zroot zfs create zroot/var zfs create ... ... reboot I've tested both ways, the second also works perfectly but requires less commands to enter. Can anybody explain me why I can't see recommendations to set mountpoint=/ for zroot instead of mountpoint=legacy?