From 0d965a0e836ef6da2d07170e7a89a49095fdf89e Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 10:46:37 +0000 Subject: [PATCH 1/9] update NixOS fdisk instructions based on my flow (18.03) --- nixos/doc/manual/installation/installing.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 6066d025adbf4..0ec462e494b58 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -386,14 +386,16 @@ $ nix-env -i w3m # fdisk /dev/sda # (or whatever device you want to install on) -- for UEFI systems only > n # (create a new partition for /boot) +> # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) > +512M # (the size of the UEFI boot partition) -> t # (change the partition type ...) -> 3 # (... of the boot partition ...) -> 1 # (... to 'UEFI System') +> n # (ignore optional warning 'Partition #3 contains a vfat signature', if you get it.) +> t # (change the partition type of the boot partition ...) +> 1 # (... to 'UEFI System'. sometimes instead uses hex code ef instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) +> # (accept default partition type primary) > 2 # (make it a partition number 2) > # (press enter to accept the default) > +8G # (the size of the swap partition) @@ -402,6 +404,7 @@ $ nix-env -i w3m > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) > a # (make the partition bootable) +> 1 # (for the root partition) > x # (enter expert mode) > f # (fix up the partition ordering) > r # (exit expert mode) From 527c2849e78edc171a46240ebb0018be5652c6de Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 11:00:31 +0000 Subject: [PATCH 2/9] 18.03 install instructions: remove vfat signature --- nixos/doc/manual/installation/installing.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 0ec462e494b58..17e422e10edb8 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -390,7 +390,7 @@ $ nix-env -i w3m > 3 # (make it a partition number 3) > # (press enter to accept the default) > +512M # (the size of the UEFI boot partition) -> n # (ignore optional warning 'Partition #3 contains a vfat signature', if you get it.) +> y # (optionally confirm removing vfat signature, if you get a warning about it.) > t # (change the partition type of the boot partition ...) > 1 # (... to 'UEFI System'. sometimes instead uses hex code ef instead.) -- for BIOS or UEFI systems From 105bad1d6870970ccf3fcb1c69453be46b68ed96 Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 13:05:50 +0000 Subject: [PATCH 3/9] nixos 18.03 install instructions: update commands in both places --- nixos/doc/manual/installation/installing.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 17e422e10edb8..887aa7c0036fd 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -95,26 +95,29 @@ # fdisk /dev/sda # (or whatever device you want to install on) -- for UEFI systems only > n # (create a new partition for /boot) +> # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) > +512M # (the size of the UEFI boot partition) -> t # (change the partition type ...) -> 3 # (... of the boot partition ...) -> 1 # (... to 'UEFI System') +> y # (optionally confirm removing vfat signature, if you get a warning about it.) +> t # (change the partition type of the boot partition ...) +> 1 # (... to 'UEFI System'. sometimes instead uses hex code ef instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) +> # (accept default partition type primary) > 2 # (make it a partition number 2) > # (press enter to accept the default) -> +8G # (the size of the swap partition, set to whatever you like) +> +8G # (the size of the swap partition) > n # (create a new partition for /) > 1 # (make it a partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) > a # (make the partition bootable) +> 1 # (for the root partition) > x # (enter expert mode) > f # (fix up the partition ordering) > r # (exit expert mode) -> w # (write the partition table to disk and exit) +> w # (write the partition table to disk and exit) From 110c52e780e7a538deae31372659739a1584e7a3 Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 13:11:34 +0000 Subject: [PATCH 4/9] nixos 18.03 install instructions: add missing `p` --- nixos/doc/manual/installation/installing.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 887aa7c0036fd..37403a13ea976 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -109,6 +109,7 @@ > # (press enter to accept the default) > +8G # (the size of the swap partition) > n # (create a new partition for /) +> # (accept default partition type primary) > 1 # (make it a partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) @@ -403,6 +404,7 @@ $ nix-env -i w3m > # (press enter to accept the default) > +8G # (the size of the swap partition) > n # (create a new partition for /) +> # (accept default partition type primary) > 1 # (make it a partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) From e16c897de50f22ca0ddd23392590a78bfbd94bb5 Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 13:13:02 +0000 Subject: [PATCH 5/9] nixos 18.03 install instructions: fix fdisk hex code to ef --- nixos/doc/manual/installation/installing.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 37403a13ea976..f3cbe18797201 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -101,7 +101,7 @@ > +512M # (the size of the UEFI boot partition) > y # (optionally confirm removing vfat signature, if you get a warning about it.) > t # (change the partition type of the boot partition ...) -> 1 # (... to 'UEFI System'. sometimes instead uses hex code ef instead.) +> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) > # (accept default partition type primary) @@ -396,7 +396,7 @@ $ nix-env -i w3m > +512M # (the size of the UEFI boot partition) > y # (optionally confirm removing vfat signature, if you get a warning about it.) > t # (change the partition type of the boot partition ...) -> 1 # (... to 'UEFI System'. sometimes instead uses hex code ef instead.) +> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) > # (accept default partition type primary) From 6ae2773c6155d297f248230bdc92d730b1fbe5d1 Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 15:53:09 +0000 Subject: [PATCH 6/9] NixOS 18.03 install instructions: bigger boot partition to prevent #34508 --- nixos/doc/manual/installation/installing.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index f3cbe18797201..3559fcc0aa52d 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -98,10 +98,10 @@ > # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) -> +512M # (the size of the UEFI boot partition) -> y # (optionally confirm removing vfat signature, if you get a warning about it.) +> +2G # (the size of the UEFI boot partition) +> y # (optionally confirm removing signature, if you get a warning about it.) > t # (change the partition type of the boot partition ...) -> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) +> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) > # (accept default partition type primary) @@ -110,7 +110,7 @@ > +8G # (the size of the swap partition) > n # (create a new partition for /) > # (accept default partition type primary) -> 1 # (make it a partition number 1) +> # (confirm default partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) > a # (make the partition bootable) @@ -393,10 +393,10 @@ $ nix-env -i w3m > # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) -> +512M # (the size of the UEFI boot partition) -> y # (optionally confirm removing vfat signature, if you get a warning about it.) +> +2G # (the size of the UEFI boot partition) +> y # (optionally confirm removing signature, if you get a warning about it.) > t # (change the partition type of the boot partition ...) -> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) +> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) -- for BIOS or UEFI systems > n # (create a new partition for /swap) > # (accept default partition type primary) @@ -405,7 +405,7 @@ $ nix-env -i w3m > +8G # (the size of the swap partition) > n # (create a new partition for /) > # (accept default partition type primary) -> 1 # (make it a partition number 1) +> # (confirm default partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) > a # (make the partition bootable) From 9e60fb4d7e701272f9e7b670332a48ac73c6f5d0 Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 16:05:28 +0000 Subject: [PATCH 7/9] NixOS 18.03 install instructions: ensure partition table is correct --- nixos/doc/manual/installation/installing.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 3559fcc0aa52d..c5dac8a11a811 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -93,6 +93,7 @@ For partitioning: fdisk. # fdisk /dev/sda # (or whatever device you want to install on) +> m # (ensure the first category listed is DOS (MBR), if not first use gparted to create an MSDOS partition table.) -- for UEFI systems only > n # (create a new partition for /boot) > # (accept default partition type primary) @@ -388,6 +389,7 @@ $ nix-env -i w3m Commands for Installing NixOS on <filename>/dev/sda</filename> # fdisk /dev/sda # (or whatever device you want to install on) +> m # (ensure the first category listed is DOS (MBR), if not first use gparted to create an MSDOS partition table.) -- for UEFI systems only > n # (create a new partition for /boot) > # (accept default partition type primary) From 8e88114cf6682fc2548c126cf1d7c176890cb93c Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 16:30:09 +0000 Subject: [PATCH 8/9] NixOS 18.03 install instructions: MBR -> GPT solves error `File system "/boot" is not on a GPT partition table` --- nixos/doc/manual/installation/installing.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index c5dac8a11a811..02893a7547927 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -93,7 +93,7 @@ For partitioning: fdisk. # fdisk /dev/sda # (or whatever device you want to install on) -> m # (ensure the first category listed is DOS (MBR), if not first use gparted to create an MSDOS partition table.) +> m # (ensure the first category listed is GPT, if not first use gparted to create a GPT partition table.) -- for UEFI systems only > n # (create a new partition for /boot) > # (accept default partition type primary) @@ -389,7 +389,7 @@ $ nix-env -i w3m Commands for Installing NixOS on <filename>/dev/sda</filename> # fdisk /dev/sda # (or whatever device you want to install on) -> m # (ensure the first category listed is DOS (MBR), if not first use gparted to create an MSDOS partition table.) +> m # (ensure the first category listed is GPT, if not first use gparted to create a GPT partition table.) -- for UEFI systems only > n # (create a new partition for /boot) > # (accept default partition type primary) From 52c06a7c9529593e1ad0ceab0d56d9281e513b8e Mon Sep 17 00:00:00 2001 From: Tycho Grouwstra Date: Sun, 10 Jun 2018 17:08:04 +0000 Subject: [PATCH 9/9] NixOS 18.03 install instructions: fdisk -> gdisk I can actually confirm this as working for me now. --- nixos/doc/manual/installation/installing.xml | 40 ++++++++------------ 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index 02893a7547927..2d5c20e5cc3a4 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -90,36 +90,31 @@ - For partitioning: fdisk. + For partitioning: gdisk. -# fdisk /dev/sda # (or whatever device you want to install on) -> m # (ensure the first category listed is GPT, if not first use gparted to create a GPT partition table.) +# gdisk /dev/sda # (or whatever device you want to install on. confirm GPT is present, if not open gparted -> Partition -> New -> create GPT partition table.) -- for UEFI systems only > n # (create a new partition for /boot) -> # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) > +2G # (the size of the UEFI boot partition) -> y # (optionally confirm removing signature, if you get a warning about it.) -> t # (change the partition type of the boot partition ...) -> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) +> ef00 # (partition as 'EFI System') -- for BIOS or UEFI systems > n # (create a new partition for /swap) -> # (accept default partition type primary) > 2 # (make it a partition number 2) > # (press enter to accept the default) > +8G # (the size of the swap partition) +> # (confirm formatting as linux partition) > n # (create a new partition for /) -> # (accept default partition type primary) -> # (confirm default partition number 1) +> 1 # (make it a partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) -> a # (make the partition bootable) -> 1 # (for the root partition) +> # (confirm formatting as linux partition) > x # (enter expert mode) > f # (fix up the partition ordering) -> r # (exit expert mode) +> m # (exit expert mode) > w # (write the partition table to disk and exit) +> y # (confirm creating partitions) @@ -388,34 +383,29 @@ $ nix-env -i w3m Commands for Installing NixOS on <filename>/dev/sda</filename> -# fdisk /dev/sda # (or whatever device you want to install on) -> m # (ensure the first category listed is GPT, if not first use gparted to create a GPT partition table.) +# gdisk /dev/sda # (or whatever device you want to install on. confirm GPT is present, if not open gparted -> Partition -> New -> create GPT partition table.) -- for UEFI systems only > n # (create a new partition for /boot) -> # (accept default partition type primary) > 3 # (make it a partition number 3) > # (press enter to accept the default) > +2G # (the size of the UEFI boot partition) -> y # (optionally confirm removing signature, if you get a warning about it.) -> t # (change the partition type of the boot partition ...) -> ef # (... to 'UEFI System'. sometimes instead uses hex code 1 instead.) +> ef00 # (partition as 'EFI System') -- for BIOS or UEFI systems > n # (create a new partition for /swap) -> # (accept default partition type primary) > 2 # (make it a partition number 2) > # (press enter to accept the default) > +8G # (the size of the swap partition) +> # (confirm formatting as linux partition) > n # (create a new partition for /) -> # (accept default partition type primary) -> # (confirm default partition number 1) +> 1 # (make it a partition number 1) > # (press enter to accept the default) > # (press enter to accept the default and use the rest of the remaining space) -> a # (make the partition bootable) -> 1 # (for the root partition) +> # (confirm formatting as linux partition) > x # (enter expert mode) > f # (fix up the partition ordering) -> r # (exit expert mode) +> m # (exit expert mode) > w # (write the partition table to disk and exit) +> y # (confirm creating partitions) # mkfs.ext4 -L nixos /dev/sda1 # mkswap -L swap /dev/sda2 # swapon /dev/sda2