Project

General

Profile

Actions

Bug #11991

closed

format: first efi partition can start from efi_first_u_lba

Added by Toomas Soome about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The format has built in first usable sector number '34' for GPT partitioning, which is true for 512B sector size disks, but is not true for other sector sizes. The first usable sector is calculated from partition entry size * number of partitions and the specification is stating "A minimum of 16,384 bytes of space must be reserved for the GPT Partition Entry Array" (UEFI 2.8 page 117). For sector size 4096 this means that first usable sector is 6 (1 sector for pmbr, 1 for GPT header and 4 sectors for partition entry array).

Testing done: used patched format to edit partition table on disk with sector size 4096B, used partition menu partition change and modify command.

Actions #1

Updated by Electric Monk about 2 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b5acee43ccb19bbf950ab21d1d87ef9d8d47ca9e

commit  b5acee43ccb19bbf950ab21d1d87ef9d8d47ca9e
Author: Toomas Soome <tsoome@me.com>
Date:   2019-11-19T14:50:27.000Z

    11991 format: first efi partition can start from efi_first_u_lba
    Reviewed by: John Levon <john.levon@joyent.com>
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF