From 865086a8b7bbfc34b0015e497a99cee589441cb9 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 10 Jan 2026 20:24:00 +0100 Subject: articles: arch-installation: Fix storage extension This fixes a regression. When switching to GPT partition tables it was ignored that GPT has a second header at the end of the storage device. Thus when copying to a larger device the header is not at the end anymore. This should not be the case and makes it impossible to extend the second partition. With `sgdisk` the header can be moved to the end which fixes the regression. --- content/articles/arch-installation.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/articles') diff --git a/content/articles/arch-installation.md b/content/articles/arch-installation.md index 9b1ef89..ae54ef3 100644 --- a/content/articles/arch-installation.md +++ b/content/articles/arch-installation.md @@ -131,6 +131,7 @@ pacstrap -K /mnt \ linux \ linux-firmware \ parted \ + gptfdisk \ btrfs-progs \ iwd \ vi \ @@ -237,6 +238,7 @@ and `ROOT` BTRFS partition can be extended to the full possible size. This assumes the partitions are on the block device `/dev/sdb`. ``` +sgdisk --move-second-header /dev/sdb parted /dev/sdb --script resizepart 2 100% cryptsetup resize root btrfs filesystem resize max / -- cgit v1.2.3-70-g09d2