From owner-freebsd-questions@freebsd.org Thu Jun 21 16:39:23 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07FC5102369C for ; Thu, 21 Jun 2018 16:39:23 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) (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 9463883FBE for ; Thu, 21 Jun 2018 16:39:22 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qt0-x233.google.com with SMTP id x5-v6so2698252qte.11 for ; Thu, 21 Jun 2018 09:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hENhlrCduhPg8b0QvFPcQ2DnsZd9WqfVqmDmNHOwZIQ=; b=IJV2R0O1LcfJCXxdIaSF5M7Hi/tD21sCeGrnjayIa5obbhAlK3ZjcYRAT3COy3nBSK hBlnspQUtkIkokm6zq0pvTtsLKmUI2ozIqK7Y94t9uXtXv6G/KQDgF6HizdvAv6LOeB/ v2XpOpbf4RV2uDB5zoCDNvuu3LtHntw/IRhWLLUrtIkaweRZkbk3TOIo+uUv/sRxSe8B uYCRHhTYppveC0nzOh6HlixPfpmk6m9Mp3byTqWz9AGOW0t1vsoiPZVB0SWJdCskQBQ0 SE0RC6LX3p8lfBF5uwhwVTtpOJB3gx2ZGQA2vDqT6Jx9XFQyC1z0+/c7i87dPoHmIBqi WCig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hENhlrCduhPg8b0QvFPcQ2DnsZd9WqfVqmDmNHOwZIQ=; b=RZtfW/wqho/Ye2kWuayLKwQgQWw99WzNQikNn3Co5xaQIPn+0J1brXblqLGrWrRndS EUrE28JbdtjS6Ob40zf734HCqNaKKFPK5BjTkTt3sxTpsRaP/qsoMZ0HKj3AwpT+NfZF cbaaYJjKVoCvGaxqF3fU/vS8NVywLuc0gLF53vFoI+aVcqndl/CFoTp8aTE/MAhTYNlR KRlrqukFPPJKlXxB7ZDQftIgiQTExMSxuAAcw3e0U7ula2bsJkG2GZ70avMaWdzVg1Ku AG/er/BcQ1GYIXOJIDhSgroJyv2TJcDDbTOTmjIiaMYATyKXhCeUHwesPAk/s8O1Az49 PpKQ== X-Gm-Message-State: APt69E3dr4N05EKW+N2GTgOkLQcVtnvNjaOqqwLrt709W0tcfxP/WQ8G BcbXlZWgSDOaIUH73uf+o4Q0YVg+gmZ6ScIMOeSu7sD7n8g= X-Google-Smtp-Source: ADUXVKJfKnw1UxkCPGIJB/DJHFqJHXykfK6X5nw42VkhdYYB3hLMuoLZX2CWlNc3ltUcaFxAxOqW48RlIcu24YTfYkk= X-Received: by 2002:a0c:bd0e:: with SMTP id m14-v6mr23280346qvg.164.1529599161469; Thu, 21 Jun 2018 09:39:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:297d:0:0:0:0:0 with HTTP; Thu, 21 Jun 2018 09:39:20 -0700 (PDT) In-Reply-To: <024a7da5-4d80-960c-9479-34fef887ff35@yandex.com> References: <024a7da5-4d80-960c-9479-34fef887ff35@yandex.com> From: Michael Sierchio Date: Thu, 21 Jun 2018 09:39:20 -0700 Message-ID: Subject: Re: Minimum size of freebsd-boot To: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2018 16:39:23 -0000 On Thu, Jun 21, 2018 at 9:15 AM, Manish Jain wrote: > > > Under GPT, FreeBSD needs a freebsd-boot partition of max size 512 KB... Not so. 64k works just fine. The binary /boot/gptboot is 60258 bytes. A snippet of the code I use to build hosts. Note that subsequent partitions are forced to be aligned on 64k boundaries. # add boot partition # p1 gpart add -t freebsd-boot -l ${PFX}-boot -s 64k ${DISK} # put boot code in boot partition gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ${DISK} # add root, make sectors aligned # p2 gpart add -t freebsd-ufs -l ${PFX}-root -a 64k -s ${ROOTSIZ} ${DISK} --=20 "Well," Brahma 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