From owner-freebsd-questions@freebsd.org Sat Nov 28 18:54:49 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A27B84A7F9E for ; Sat, 28 Nov 2020 18:54:49 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Ck0zY34fbz4dYN for ; Sat, 28 Nov 2020 18:54:49 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mailman.nyi.freebsd.org (Postfix) id 67C9846821E; Sat, 28 Nov 2020 18:54:49 +0000 (UTC) Delivered-To: questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6789D46821D for ; Sat, 28 Nov 2020 18:54:49 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ck0zX2t16z4dSW for ; Sat, 28 Nov 2020 18:54:48 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-lf1-x136.google.com with SMTP id j205so12059090lfj.6 for ; Sat, 28 Nov 2020 10:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=8otm9oPiPxfE1AsMwgVKatYRIjK++Lm2mgOZnkCqYjM=; b=iX341/NcaLYGhHa4NR+zcMDIy54Xr3wvUyyrXe6cr055KEpVcPJaE+Oh6aZyF2K/Sk NjeG7eZZFBmk3KvJmUDpc2W9lsk+JmP6htWfP7/E4Da0LRt19dSc9V/cGoBrGHIZxRr2 CerZ8h5vx0cI/4xp3uhuStcNzpQhYxv09Mo7edjy83gN9F1n//tV5HMPfR5KBgNYy+h5 3VMUN/qL/2l+hfcb6xRntoODttLRCQ/+tD/V4wblYtP5/Hcu/NHhFgr8b/+KHXgh09pi nJDfVE0lMC63lt1vnyVtJml77BJp2q7yuVH/g2X1aIxSeBdxAVbg7g6GKUTc0z76Fx+A +sjA== 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; bh=8otm9oPiPxfE1AsMwgVKatYRIjK++Lm2mgOZnkCqYjM=; b=N3YrEsxSn8vPaR2TPHR3WSyseX9OQCpCZsLDW+0JtlL2dM0oagggokUCfFx48Qmk/d kRfogcqc8j57BtZjSOuJUdD1mvh/WMqpjEAvIsg1C8aMRt2qATc1XaA30a9wCVhat3/g 81O8IYd9g1AiEE+yBnXjjkwURHXIhUGskg0ZFfAUURZFlJpOyubKR4xmxfcQTRWD+vPF 6eM8bnXaOv9KKZ8Xl4WubyZC6sDequI0mJvlhjUGber4HnunE1Ta0hwH5zAA7T6gK06c Xxiu1NnSpzdkn0KbyCGV/N1FVZ79MTdGq/zboveU6iAXspD+V8TlvllzCH4KzrGNrxcL oEMA== X-Gm-Message-State: AOAM531ho9lYqijNBBdOl7sv76Tq3JNBPaFKWtbvOTbRTN+y5zP+lpc6 UPw8SBXK9UTaf4PhKP+LPR+LcV+phbxwxTEVB2/b0TttYRHwSpib X-Google-Smtp-Source: ABdhPJwG5ZQ4h1Ff9HG/gBStjJiAs0bTPtFIKQZsB+RsbeB4jAzXtIkYurNvm2bO4we6xPLtHt1gCzxTvfkfLa9z1Ak= X-Received: by 2002:a19:c219:: with SMTP id l25mr5453252lfc.575.1606589685975; Sat, 28 Nov 2020 10:54:45 -0800 (PST) MIME-Version: 1.0 References: <24514.39267.505671.863940@jerusalem.litteratus.org> In-Reply-To: <24514.39267.505671.863940@jerusalem.litteratus.org> From: Michael Sierchio Date: Sat, 28 Nov 2020 10:54:09 -0800 Message-ID: Subject: Re: auto partitioning To: "questions@FreeBSD.org" X-Rspamd-Queue-Id: 4Ck0zX2t16z4dSW X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=iX341/Nc; dmarc=none; spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when checking 2a00:1450:4864:20::136) smtp.mailfrom=kudzu@tenebras.com X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::136:from:127.0.2.255]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::136:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::136:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2020 18:54:49 -0000 On Sat, Nov 28, 2020 at 10:39 AM Robert Huff wrote: > > Jan Stary writes; > > > Taking the easy way, I opted for the auto partitioning in the > > installer, which apparently creates one huge partition spanning > > the whole disk. > > > > Filesystem Size Used Avail Capacity Mounted on > > /dev/ada0s1a 285G 7.1G 255G 3% / > > devfs 1.0K 1.0K 0B 100% /dev > > > > Is that intended? I got used to separating /usr, /var/, /tmp and > > /home for various reasons. Is one big partition the preferred way > > to do things in FreeBSD? > > Short answer: you asked for the easy way; you got the easy way. > My guess is anything else involves variables and decisions that > are - and probably should remain - beyond the scope of the installer. > I haven't done "the easy way" since version 3, if not earlier. > But I can explain why, and I'm willing to put in the time. What Rob said. ;-). The easy way is only easy once, then can get painful I want world-writable filesystems to be mounted differently, so I have /tmp and /var/tmp as separate partitions. World-writable means that any user can fill the disk, unless you're careful about quotas. With separate partitions, you can add a device and mount it to /usr when it starts getting crowded. This is a typical setup for me =E2=80=93 disk is cheap, R= AM is expensive, so I tend not to use tmpfs. /dev/gpt/X2yQSsIzhmKMO-root / ufs rw,noatime 1 1 devfs /dev devfs rw 0 0 /dev/gpt/X2yQSsIzhmKMO-tmp /tmp ufs rw,noexec,nosuid 2 2 /dev/gpt/X2yQSsIzhmKMO-var /var ufs rw,noatime 2 2 /dev/gpt/X2yQSsIzhmKMO-vartmp /var/tmp ufs rw,noexec,nosuid 2 2 /dev/gpt/X2yQSsIzhmKMO-usr /usr ufs rw,noatime 2 2 Filesystem 1K-blocks Used Avail Capacity Mounted o= n /dev/gpt/X2yQSsIzhmKMO-root 2031132 87992 1780652 5% / devfs 1 1 0 100% /dev /dev/gpt/X2yQSsIzhmKMO-tmp 2031132 52 1868592 0% /tmp /dev/gpt/X2yQSsIzhmKMO-var 2031132 211416 1657228 11% /var /dev/gpt/X2yQSsIzhmKMO-vartmp 1015324 12 934088 0% /var/tmp /dev/gpt/X2yQSsIzhmKMO-usr 15223292 5028288 8977144 36% /usr This requires some planning, but usually / doesn't grow, you need enough space in /var for freebsd-update and pkg dbs, etc. Whatever is left over belongs to /usr --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata