diff --git a/README.md b/README.md index d37375fa..6664f60b 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,21 @@ Mostly focusing on setting things up on NixOS, but supporting other OSes where p 2. change password for the default user `nixos` 3. ssh from another, already bootstrapped, machine -remote (sata): +remote (sata + MBR): +```bash +sudo su - +parted /dev/sda -- mklabel msdos +parted /dev/sda -- rm 1 +parted /dev/sda -- rm 2 +parted /dev/sda -- rm 3 +parted /dev/sda -- rm 4 +parted /dev/sda -- mkpart primary 1MiB 1GiB +parted /dev/sda -- mkpart primary 1GiB 100% +cryptsetup luksFormat /dev/sda2 +``` + +remote (sata): ```bash sudo su - # `efibootmgr -b 000x -B` if you want to remove entry number x @@ -51,10 +64,21 @@ remote (nvme): cryptsetup luksOpen /dev/nvme0n1p2 crypt ``` -remote (sata): +remote (sata+MBR): + +```bash +mkfs.ext2 /dev/sda1 -L boot +``` + +remote (sata + GPT): ```bash mkfs.fat -F 32 -n boot /dev/sda1 +``` + +remote (sata): + +```bash mkfs.btrfs -L nixos /dev/mapper/crypt cryptsetup luksClose crypt cryptsetup luksOpen /dev/sda2 crypt