From owner-freebsd-questions@freebsd.org Fri Mar 19 06:45:03 2021 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 474675B9AF6 for ; Fri, 19 Mar 2021 06:45:03 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 4F1vXG2Kxmz3q4D for ; Fri, 19 Mar 2021 06:45:02 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x331.google.com with SMTP id 31-20020a9d00220000b02901b64b9b50b1so7560551ota.9 for ; Thu, 18 Mar 2021 23:45:02 -0700 (PDT) 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=gEPuHFJ0rUh5FkV7msETaGKGdUGsHOsYEkxxLpUrtbM=; b=tPZN95DUvyM4j4jW04ulEddMqgGc2D4INquPMF/q8SCi+z1jvgNWYHh2UezO2nIOrz +ijfmQK4GwzlnBEdoh41h+w4Vqu7xjv7LW60Jc9qBstvXKhfD6zQjOgx8f2zcGbICvx7 rkPheijHT5WcOAbjtHtiToUwQT80XB74/R4oSils3TIuADX34j0gkxriFbcjqxJcTvzh juuPTxHiCnm+E/dZcnJFPBBRJ1z8kzM5Q1RZW8IywBWuAXcGCrF5l7Zin3FPYJcrLM2h uN6OwdUQTpbznQu1jt0B8XPQQfR4y6Hgq+reLpOAg5/H9twu9M+Gix1ktveGNFtq1g2W YfhQ== 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=gEPuHFJ0rUh5FkV7msETaGKGdUGsHOsYEkxxLpUrtbM=; b=l2cxmU243hNiqwc21Seum9BXkKKBngJBuJ2tTu9baA4ajwPlsTrk6yanoKeddGCcfm vncYHsotnXrt/BchS0jhAOOgk4Mo0kaz3tNNVvik/QA8clgavmMH94yRBzjvJr7Vm6nZ MiP1TSdf2jNTCBXG0l+2zh3QcnBQujuZ57enASc8lPq/mwDF6yBWPNqnfjHAojIzXAi9 AJ3T2ZvZLM3rFm1+EFJWwwGQLGgHZnRt6fhISWOSL01DOC6tuFEumW5299AupsnM6riS EeFYX0YtMKXs5zzDmudNT0T5gAD8P/CNDxlE1qRnozqSNMxv3a2vD2afCzXD86WKP4Mu 3i2w== X-Gm-Message-State: AOAM530imrOMQYtlbpM23NhKUdcIeBCsC3cHI5fU+OE86nuPvxYYOvIJ KjLYSdRP+HegWDGzQdp5Chx9iBwowuakVrBqDUs= X-Google-Smtp-Source: ABdhPJwnKGfY1uCseOsAA2Jp9pr94BO5KhkinqNiE9Lng6EbxFMQwO9JhxZQrDuy6HXK6p8WK8QCjnbl0jWuxpYHGE0= X-Received: by 2002:a05:6830:1e14:: with SMTP id s20mr10831235otr.199.1616136301138; Thu, 18 Mar 2021 23:45:01 -0700 (PDT) MIME-Version: 1.0 References: <20210317213615.7e1443af@antix1> <20210318105902.0fad52928f1c43dea056bcb6@gmail.com> <44czvwgza8.fsf@be-well.ilk.org> <20210318120751.23e1e2f565e2face195d9d73@gmail.com> <20210318185106.82ace6b0a2e6d3b78ecc890f@gmail.com> In-Reply-To: <20210318185106.82ace6b0a2e6d3b78ecc890f@gmail.com> From: Kevin Oberman Date: Thu, 18 Mar 2021 23:44:45 -0700 Message-ID: Subject: Re: Partitioning 1T HDD To: Duke Normandin Cc: "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 4F1vXG2Kxmz3q4D X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=tPZN95DU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::331 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::331:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::331:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::331:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" 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: Fri, 19 Mar 2021 06:45:03 -0000 Exactly. It replaces fdisk and bsdlabel. Use "gpart create" to set the disk as GPT or BSD. Use "gpart add" to partition the drive. Then use newfs and glabel as needed to finish up the file system. The gpart man page is pretty good with several examples. Several more presentations may be found with a web search. "gpart show " and "gpart list" to check that things look right. List has all details while "show" just shows partitions. Generally recommended that the boot block be padded to 2048. Do this by setting the -b option to 2048 for the "add" of the partition after the boot block. This is an example of an GPT setup. It has separate partitions for root, usr, var, swap, and tmp plus an encrypted partition for sensitive files. Don't forget swap! gpart show ada => 40 3906963376 da0 GPT (1.8T) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 4194304 3 freebsd-swap (2.0G) 8390656 10217464 4 freebsd-ufs (4.9G) 18608120 641728512 5 freebsd-ufs (306G) 660336632 1287722512 6 freebsd-ufs (614G) 1948059144 471040000 7 freebsd-ufs (225G) 2419099144 314572800 8 freebsd-ufs (150G) 2733671944 1173291472 - free - (559G) 34 2014 - free - (1.0M) 2048 532480 1 efi (260M) 534528 262144 2 ms-reserved (128M) 796672 541927424 3 ms-basic-data (258G) 542724096 1258291200 5 freebsd-ufs (600G) 1801015296 33554432 6 freebsd-swap (16G) 1834569728 2069889024 7 freebsd-ufs (987G) 3904458752 1034240 - free - (505M) 3905492992 1536000 4 ms-recovery (750M) 3907028992 143 - free - (72K) Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 On Thu, Mar 18, 2021 at 5:51 PM Duke Normandin wrote: > On Thu, 18 Mar 2021 13:00:20 -0700 > Kevin Oberman wrote: > > > I'd like to point out the GPT works for either MBR or EFI booting. My old > > laptop had broken EFI support, so had to be MBR, but the partitioning was > > GPT which is far easier to use and manage. It is likely true that EFI > > requires GPT, but MBR does not. I'm not even positive about EFI > > requirements, but it does need more partitions, so using it without GPT > > would be, at best, awkward. > > Thanks for fleshing out the answer to my questions. Are you talking about > using GPT rather than fdisk/cfdisk? > -- > Duke Normandin >