Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pc: move /home to dedicated ext4 disk (nvme0n1) (flakes-wabt)

StatusDone
TypeTask
Prioritynormal

Wipe the SanDisk 1.8T NVMe (nvme0n1, formerly Windows/NTFS mounted manually at /data/win), format the whole disk as one ext4 partition, copy the current /home over, and declare fileSystems.“/home” in nixos/hosts/pc/hardware-configuration.nix.

  • Unmount /data/win, wipe nvme0n1, single GPT partition, mkfs.ext4 -L home
  • Initial rsync of /home to new fs
  • Declare fileSystems.“/home” in pc hardware-configuration.nix, build
  • Final rsync from TTY with user logged out, nixos-rebuild boot, reboot
  • Verify, then reclaim old /home space on root fs

Summary of Changes

  • Wiped the SanDisk 1.8T NVMe (old Windows/NTFS), one GPT partition, ext4 label home, UUID 7f0e17fa-9aa1-4124-ae43-0de24e743822.
  • Added fileSystems."/home" (by-uuid) to nixos/hosts/pc/hardware-configuration.nix.
  • Copied /home over, rebooted onto it, deleted the shadowed old /home on the root fs (~52G freed).
  • Note: NVMe kernel names swapped after reboot (root is now nvme0n1p2, home nvme1n1p1); config uses UUIDs so this is harmless.