Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jA6sd-0005VV-Aj for mharc-grub-devel@gnu.org; Fri, 06 Mar 2020 01:54:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA6sa-0005Uq-EH for grub-devel@gnu.org; Fri, 06 Mar 2020 01:54:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jA6sV-0005V9-Qn for grub-devel@gnu.org; Fri, 06 Mar 2020 01:54:38 -0500 Received: from m9a0014g.houston.softwaregrp.com ([15.124.64.90]:50781) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jA6sU-0005Op-Uf for grub-devel@gnu.org; Fri, 06 Mar 2020 01:54:35 -0500 Received: FROM m9a0014g.houston.softwaregrp.com (15.121.0.191) BY m9a0014g.houston.softwaregrp.com WITH ESMTP FOR grub-devel@gnu.org; Fri, 6 Mar 2020 06:53:46 +0000 Received: from M9W0067.microfocus.com (2002:f79:be::f79:be) by M9W0068.microfocus.com (2002:f79:bf::f79:bf) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 6 Mar 2020 06:54:01 +0000 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (15.124.72.14) by M9W0067.microfocus.com (15.121.0.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Fri, 6 Mar 2020 06:54:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MZEyO13neYNYJodOKBVvzTp++ivcq/F145By+nJfPy5+RbxoX43zu1nQPNyUR6Ytsc0FfOrFz4Eh6GQN7b2hU+1yBJE3XtRzNUtqzwXJb3Xpxsz/0Ji0gLaSuAF+b6sCM/BB7jsB3q8baiur0pE9bDnUrQGL/NpN3+RFBY1/RQUoCRVhX3g1MDolaY3J9OSMXTriIF+db3+HEyMZrSk59z30cGHfaZKXnv2k6LS86NfISlant0bVt2+NwKnc+/3r0RCJ4UCK+XeU/su/Yk6gEt3VAAa+JTmp6g/FrPQ6s8qMPTIH7PgL0YEyJfSP8nuNbnexpGhQ+Zu5gJAILeJV9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b1EFSw1DaXRMfFiNl0jxmm3wVdEhgSCc9YwTYwffuSU=; b=Q1JIOnhfqfH9bTwrOMLqeD0x5U26Y9X5rvjCPKkEgS3UrGo1TuXyZllVtWOyB9ZcuBiVJ9dsJMjYfJpz2QNvgiC3+7c8UUMi2yo2HI4V/VvE6AYYbFPEHBZdVcbRm2Poj/S0djZ2aljL1llEr0pmeoD4ADHxGTvMn0ngEtxL4/b0s657ZKohewAEh6bUoFl9t6gC3ya28ZFajz1CiU12bpBDz096IPP9Ip19ypnx+eiowzmJf54tuDGlQX+DiUeyt1+9YMImNapGf5Q6P1TsS5Q/kPGrr5IDItF6HxBDFLVv5wXquzHVyOGM4wwNJZj79dn+EzDJrHC6dL9kzEPKYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=MChang@suse.com; Received: from BY5PR18MB3188.namprd18.prod.outlook.com (2603:10b6:a03:1ac::18) by BY5PR18MB3234.namprd18.prod.outlook.com (2603:10b6:a03:1a1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.19; Fri, 6 Mar 2020 06:53:59 +0000 Received: from BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::28ac:20e6:d692:e83]) by BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::28ac:20e6:d692:e83%5]) with mapi id 15.20.2772.019; Fri, 6 Mar 2020 06:53:59 +0000 From: Michael Chang To: Subject: [PATCH v2] docs: Update for stopping small mbr gap support Date: Fri, 6 Mar 2020 14:53:45 +0800 Message-ID: <20200306065345.13950-1-mchang@suse.com> X-Mailer: git-send-email 2.16.4 Content-Type: text/plain X-ClientProxiedBy: HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) To BY5PR18MB3188.namprd18.prod.outlook.com (2603:10b6:a03:1ac::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (36.229.19.35) by HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.16 via Frontend Transport; Fri, 6 Mar 2020 06:53:58 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [36.229.19.35] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 933385f2-d496-4726-05f1-08d7c19b25ac X-MS-TrafficTypeDiagnostic: BY5PR18MB3234: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0334223192 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4636009)(376002)(346002)(396003)(39860400002)(136003)(366004)(189003)(199004)(16526019)(8936002)(478600001)(8676002)(26005)(966005)(186003)(316002)(86362001)(6916009)(81156014)(2906002)(81166006)(15650500001)(66946007)(36756003)(69590400007)(66556008)(66476007)(6666004)(2616005)(6506007)(6512007)(5660300002)(1076003)(6486002)(52116002)(956004); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR18MB3234; H:BY5PR18MB3188.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: suse.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o5J1vBKoy85g0Lq0BXdw3J0Aen4U8uwfQTiOMFL+QdZv9wvAXpX6GMb0Mkb5p05L1geICoKc1rd15DsbOZscGgkDRKyhXwIUeJ8bPa9AAy66fa/DZFV9saZRoJNinAJESytGfokeYQgvVRdEr+3dYqqMdUjX8ILQfmK7ohr+EB/SdfDJWDXZSV5pXM79VZtu9Arzm472dDINM42bhxKMgGb/yKAn8dgTR9XRolj7QmdjMBSp60FZjvtv9qj+vgtCezle8xACaK7+c46AI+hzTyG2jR2PWV9fkre9kGDciKx0CZFXRAO/fo9+DKskIzbrsDATEVtwHHGo1I4weKb4O0CICDNIW7uUxdhwkUEFfDO8jsukeyz0w8GqlxRECQ7q4BGEo+ypuR/Lw/XX86YOSFKeuEdZFEq0apdZ6/FSlJgebWZiIjqmYLhEVk+iHtbNjIq2DKwocv7Oo02pxYtQFqiM5c1mM7pzxSHmDXfzIxhTfJyinBxfqxhw2NQo5UgJNVKgUp9SGS5ggObBAKqt+LPgw6BjNvscUbL6LL/c5zN+mGE5b4bVkTV0wGuTnw2h6SJq3LrTMmniWPK4c08AUg== X-MS-Exchange-AntiSpam-MessageData: tNLv500OP4ZdR8+U2mmlq1b3VWnXwuTDnEtjtGFCBsRt03kYIKKl1ji4Vrh0GfhdPhbG6GpPXTs0vULFf9QJT/GScI2X7aDIi+ZTNhDGrOzbvxmBg2sqnRW3D1ltJtm0a8wAL7yYJzQg8tM51ova8g== X-MS-Exchange-CrossTenant-Network-Message-Id: 933385f2-d496-4726-05f1-08d7c19b25ac X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2020 06:53:59.4565 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rQiNjlVNRr1j6SVZVksAA/YlyDtb2okXDQyoBV1kfr5e6+TBVJDq5NNPU8vJrIZV X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR18MB3234 X-OriginatorOrg: suse.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 15.124.64.90 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2020 06:54:41 -0000 Further to the discussion about disabling btrfs zstd support for i386-pc[1], this paragraph in manual about mbr gap size doesn't seem to hold true any longer. "You must ensure that the first partition starts at least 31 KiB (63 sectors) from the start of the disk" As in many occasions we inevitablely have to provide core image with the size that goes beyond 31 KiB. For instance, diskfilter and crypto modules which are needed by root disk formatted with btrfs, lvm, mdadm and so on would add quite a lot space to the image. So this misinformation would have people misguided and thought that it is still fine to use small MBR gap utill some point of time the update has grown the size too much that the grub-install can no longer embed the image to the mbr gap. In this case changing the partition layout is required but it is never easy to do so. The patch tries to correct the paragraph with a more practical size that works for grub and also for modern computer systems in general. [1] https://lists.gnu.org/archive/html/grub-devel/2019-11/msg00025.html Signed-off-by: Michael Chang --- Changes since v2: * Rework a paragraph in commit message and also some places in manual to be more clear to read * Correct some typos docs/grub.texi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/grub.texi b/docs/grub.texi index 83979af38..4614a2ee1 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -845,12 +845,20 @@ only be used if the @file{/boot} filesystem is on the same disk that the BIOS boots from, so that GRUB does not have to rely on guessing BIOS drive numbers. -The GRUB development team generally recommends embedding GRUB before the -first partition, unless you have special requirements. You must ensure that -the first partition starts at least 31 KiB (63 sectors) from the start of -the disk; on modern disks, it is often a performance advantage to align -partitions on larger boundaries anyway, so the first partition might start 1 -MiB from the start of the disk. +The GRUB development team generally recommends embedding GRUB before the first +partition, unless you have special requirements. You must ensure that the first +partition starts at least 1 MiB from the start of the disk; Additionally, on +modern disks it is often a performance advantage to align partitions on larger +boundaries and 1 MiB is the least common multiple of many used alignment sizes. +E.g. SSD, it became crucial to have the partition correctly aligned to avoid +excessive read-modify-write cycles and thus modern tools set to use 1 MiB as a +standard practice. + +In case of legacy systems that cannot boot if first partition is not on the +cylinder boundary, the fallback blocklist install method should remain working +for them if the core image grows too much someday. Here we just can't advertise +that 31 KiB (63 sectors) is a sensible size any longer as that would pose great +constraint to include new features as time goes by. @heading GPT -- 2.16.4