How to fix a (slightly) broken root filesystem on NixOS VM image

I’m not sure how to do that from a windows host. But instead, you can do it from the VM two ways.

  1. From the boot loader, you can press e to edit the kernel cmdline and add boot.shell_on_fail, which will put you into a shell and let you fix the disk with fsck.
  2. You can boot the live CD ISO on the VM and fix the disk from there.
1 Like