Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

GPT PMBR size mismatch on generated image

オープン
#246 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
shell

調査の方向性

mkrootfs.sh、mkplatformfs.sh、mkimage.sh を使用して Pinebook Pro のイメージを再現し、その後、SD カードへの書き込み前後に、生成されたイメージを fdisk で調べます。生成された GPT とパーティション境界を対象デバイスのサイズと比較し、ディスクを集中的に使用した場合やパーティションを変更した場合にも信頼性が維持されるかを検証します。イメージが GPT PMBR の不一致を報告しなくなり、有効なパーティション変更後も起動し続ければ完了です。

索引モデルが issue の本文から書いたものです。

説明

I'm trying to build an image for the Pinebook Pro, doing the following:

> sudo ./mkrootfs.sh -o aarch64latest aarch64
> sudo ./mkplatformfs.sh pinebookpro aarch64latest
> sudo ./mkimage.sh void-pinebookpro-PLATFORMFS-20220403.tar.xz

This all completes without any errors, but when I write the resulting image to an SD card and then open that SD card with fdisk, it gives this error message:

> xzcat void-pinebookpro-20220403.img.xz | dd of=/dev/sde bs=4M status=progress
> sudo fdisk /dev/sde

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (4194303 != 125173759) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.

The SD card boots OK in the Pinebook Pro, but it will freeze up if I do anything disk intensive, and if I make any changes in fdisk (such as recreating the root partition to increase its size, or creating new partitions) then the SD card no longer boots.

Not sure if I'm doing something wrong when generating the image, or if there is actually a problem.

主要言語
Shell
スター
520
フォーク
276
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

void-linux/void-mklive のほかの issue

void-linux/void-mklive の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。