I’m currently running NixOS inside a VM and I’m getting this error on booting up:
nixos: Inodes that were part of a corrupted orphan linked list found.
nixos: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
/dev/disk/by-label/nixos has unrepaired errors, please fix them manually.
An error occurred in stage 1 of the boot process, which must mount the root filesystem on `/mnt-root` and then start stage 2. Press one of the following keys:
r) to reboot immediately
*) to ignore the error and continue
If I ignore the error, the system happily boots without issue, and besides this message popping up every boot, nothing seems amiss, although running on a notionally broken filesystem concerns me.
If I press r
, I just get back to the same spot.
I’ve tried a few things:
- Add
single
to thelinux
line in GRUB on boot. This gives me a single user prompt, but/
is still mountedrw
. Hence I can’t runfsck
on it. - Instead, add
fsck.mode=force fsck.repair=yes
to thelinux
in GRUB on boot. This seems to do nothing.
So is there anyway other a rescue disk to get fsck running on my root partition?
I note that there is no /etc/nixos/hardware-configuration.nix
that exists. I don’t know if this is a peculiarity of VM based nix, or something more normal. Also everything is stored in the /
partition, the disk isn’t partitioned in any other way.