NixOS reboot after first start of the day

In the evening I turn off my computers (cut the power) and the next morning when I restart NixOS it reboots after about 4 minutes and then if I reboot during the day no problem.
Problem only at the first start in the morning.

āžœ systemd-analyze
Startup finished in 12.519s (firmware) + 4.498s (loader) + 2.595s (kernel) + 4min 21.865s (userspace) = 4min 41.478s
graphical.target reached after 6.468s in userspace.

What takes 4min 21.865s minutes is my 4TB external drive.

Hm, if you literally just yank the power then maybe ext4 is taking a while to restore the filesystem or such. Have you considered proper shutdown?

To get a clear picture, can you share the output of journalctl --boot after one of these slow boots?

5 Likes

I had to reinstall NixOS and I no longer have disk problems.