diff options
author | 6t8k <58048945+6t8k@users.noreply.github.com> | 2023-05-17 21:28:11 +0200 |
---|---|---|
committer | 6t8k <58048945+6t8k@users.noreply.github.com> | 2023-05-17 21:28:11 +0200 |
commit | f652c8335446a841b4ee5b0be1a0a783e449e743 (patch) | |
tree | a6df2d441b47040cdc9ff1880046a5319ebc96f2 /nixos/doc/manual/installation | |
parent | a4b47b68244dd62a1b8f1ae96cf71fae46eb9d25 (diff) |
nixos/manual: rectify partitioning commands for UEFI/GPT
For GPT partition tables, there is no primary/logical/extended partition type, and the layout of the mkpart command options slightly differs depending on whether parted operates on an MBR or a GPT partition table. This has so far resulted in the string `primary` being assigned to the GUID partition name field, which is probably unintended. Rectify this by giving the GUID partitions sensible names and setting `fs-type` where applicable.
Diffstat (limited to 'nixos/doc/manual/installation')
-rw-r--r-- | nixos/doc/manual/installation/installing.chapter.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/doc/manual/installation/installing.chapter.md b/nixos/doc/manual/installation/installing.chapter.md index 53cf9ed14c33a..815bcc071cd9c 100644 --- a/nixos/doc/manual/installation/installing.chapter.md +++ b/nixos/doc/manual/installation/installing.chapter.md @@ -249,14 +249,14 @@ update /etc/fstab. which will be used by the boot partition. ```ShellSession - # parted /dev/sda -- mkpart primary 512MB -8GB + # parted /dev/sda -- mkpart root ext4 512MB -8GB ``` 3. Next, add a *swap* partition. The size required will vary according to needs, here a 8GB one is created. ```ShellSession - # parted /dev/sda -- mkpart primary linux-swap -8GB 100% + # parted /dev/sda -- mkpart swap linux-swap -8GB 100% ``` ::: {.note} @@ -550,8 +550,8 @@ corresponding configuration Nix expression. ### Example partition schemes for NixOS on `/dev/sda` (UEFI) ```ShellSession # parted /dev/sda -- mklabel gpt -# parted /dev/sda -- mkpart primary 512MB -8GB -# parted /dev/sda -- mkpart primary linux-swap -8GB 100% +# parted /dev/sda -- mkpart root ext4 512MB -8GB +# parted /dev/sda -- mkpart swap linux-swap -8GB 100% # parted /dev/sda -- mkpart ESP fat32 1MB 512MB # parted /dev/sda -- set 3 esp on ``` |