summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-10-15 19:57:48 +0200
committerxengineering <me@xengineering.eu>2025-10-15 19:57:48 +0200
commit2fb9455afd7bf87b8d53d8ea64faee439447f50f (patch)
tree8868d0a8c299d609792b31df45822023f403a1ce /content
parent4ef4cb49bf5e8a49c814695763f3aabfce9168ad (diff)
downloadwebsite-2fb9455afd7bf87b8d53d8ea64faee439447f50f.tar
website-2fb9455afd7bf87b8d53d8ea64faee439447f50f.tar.zst
website-2fb9455afd7bf87b8d53d8ea64faee439447f50f.zip
articles: arch-installation: Switch to GPT
This allows to use bigger drives like 4 TB and above.
Diffstat (limited to 'content')
-rw-r--r--content/articles/arch-installation.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/content/articles/arch-installation.md b/content/articles/arch-installation.md
index 5da4b22..3fe154c 100644
--- a/content/articles/arch-installation.md
+++ b/content/articles/arch-installation.md
@@ -20,14 +20,14 @@ file which can be written to a physical drive like an USB stick or SSD.
The installation is based on the following design decisions.
-- MBR-based partition table and BIOS / legacy boot
+- BIOS / legacy boot
+- GPT-based partition table
- full disc encryption
-- Btrfs filesystem
+- Btrfs root filesystem
- only a minimalistic set of installed packages (no graphical environment)
-Those might change in the future. A GPT-based partition table and a UEFI boot
-based on a unified kernel image would be appreciated to support secure boot but
-could not be achieved so far.
+Those might change in the future. UEFI boot based on a unified kernel image
+would be appreciated to support secure boot but could not be achieved so far.
#### Installation
@@ -80,10 +80,10 @@ timedatectl
The virtual machine disk can be partitioned with `parted`.
```
-parted /dev/vda --script mklabel msdos
+parted /dev/vda --script mklabel gpt
parted /dev/vda --script mkpart primary fat32 1MiB 2GiB
parted /dev/vda --script mkpart primary 2GiB 100%
-parted /dev/vda --script set 1 boot on
+parted /dev/vda --script set 1 legacy_boot on
```
The following commands format the second partition for use with Linux Unified
@@ -175,7 +175,7 @@ The `syslinux` bootloader is installed and configured.
mkdir -p /boot/syslinux
cp /usr/lib/syslinux/bios/*.c32 /boot/syslinux/
extlinux --install /boot/syslinux
-dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of=/dev/vda
+dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/gptmbr.bin of=/dev/vda
cp /usr/share/syslinux/syslinux.cfg /boot/syslinux/
sed -i 's|root=/dev/sda3 rw|cryptdevice=/dev/disk/by-label/CRYPTO_ROOT:root root=/dev/mapper/root rw|g' /boot/syslinux/syslinux.cfg
```