From fd80e26ea2cffe0ee6bfd6d9b4747ad3ac74f518 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Fri, 27 Nov 2026 04:08:54 +0800 Subject: [PATCH] =?UTF-8?q?create:=20=E9=A6=96=E6=AC=A1=E5=BC=80=E6=9C=BA?= =?UTF-8?q?=E6=8C=89=E7=A3=81=E7=9B=98=E5=AE=9E=E9=99=85=E5=AE=B9=E9=87=8F?= =?UTF-8?q?=E6=89=A9=E6=A0=B9=E5=88=86=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:firstboot-resize-plan-20261127 MemRelay-Resource: 10681818-4d9c-44fd-b6f7-f30325d8a67c --- .../首次开机按磁盘实际容量扩根分区.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 projects/bc51a377-ed2d-4afc-a176-554fce220d45/首次开机按磁盘实际容量扩根分区.md diff --git a/projects/bc51a377-ed2d-4afc-a176-554fce220d45/首次开机按磁盘实际容量扩根分区.md b/projects/bc51a377-ed2d-4afc-a176-554fce220d45/首次开机按磁盘实际容量扩根分区.md new file mode 100644 index 0000000..26a4255 --- /dev/null +++ b/projects/bc51a377-ed2d-4afc-a176-554fce220d45/首次开机按磁盘实际容量扩根分区.md @@ -0,0 +1,21 @@ +--- +title: 首次开机按磁盘实际容量扩根分区 +type: decision +permalink: main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/首次开机按磁盘实际容量扩根分区 +stable_id: 10681818-4d9c-44fd-b6f7-f30325d8a67c +scope: project +memory_type: decision +project_id: bc51a377-ed2d-4afc-a176-554fce220d45 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: firstboot-resize-plan-20261127 +created_at: '2026-11-26T20:08:51.293439+00:00' +updated_at: '2026-11-26T20:08:51.293439+00:00' +tags: +- debian +- resize +- image +--- + +2026-11-27 确认、尚未实现:后续刷机镜像里加首次开机扩容。脚本读取磁盘真实扇区数,不写死 14.xGB。把备份 GPT 挪到真实最后一扇区,根分区必须是最后一块,起点 659456 和 PARTUUID a7ab80e8-e9d1-e8cd-f157-93f69b1d141e 不变,fstab 靠它挂根。然后 resize2fs 不带容量参数。4GB 盘大约到 3.5GiB,这块 14.6GiB 盘大约到 14.2GiB。扩容成功后再删服务和脚本;失败则下次开机再试。还没刷出去的镜像里不要预先删。板上已有 sfdisk、partx、resize2fs。 \ No newline at end of file