Failed to mount /usr/bin

When booting I get the boot message: `Failed to mount /usr/bin`
Why does this error occur? I am on Nixos Unstable.

Here are some relevant logs:

apr 08 17:27:03 desktop systemd[1]: Successfully made /usr/ read-only.

...

apr 08 17:27:09 desktop systemd\[1\]: Mounting /usr/bin…
apr 08 17:27:09 desktop kernel: amdgpu: Virtual CRAT table created for CPU
apr 08 17:27:09 desktop kernel: amdgpu: Topology: Add CPU node
apr 08 17:27:09 desktop kernel: e\[0;1;31me\[0;1;39me\[0;1;31mamdgpu: Overdrive is enabled, please disable it before reporting any bugs unrelated to overdrive.e\[0m
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: enabling device (0006 → 0007)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: initializing kernel modesetting (IP DISCOVERY 0x1002:0x7550 0x1EAE:0x8811 0xC0).
apr 08 17:27:09 desktop systemd\[1\]: Mounted /home.
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: register mmio base: 0xF6C00000
apr 08 17:27:09 desktop systemd\[1\]: Mounted /swap.
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: register mmio size: 524288
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 0 <common_v1_0_0> (soc24_common)
apr 08 17:27:09 desktop systemd\[1\]: Activating swap /swap/swapfile…
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 1 <gmc_v12_0_0> (gmc_v12_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 2 <ih_v7_0_0> (ih_v7_0)
apr 08 17:27:09 desktop systemd\[1\]: e\[0;1;38:5:185me\[0;1;39me\[0;1;38:5:185musr-bin.mount: Mount process finished, but there is no mount.e\[0m
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 3 <psp_v14_0_0> (psp)
apr 08 17:27:09 desktop systemd\[1\]: e\[0;1;38:5:185me\[0;1;39me\[0;1;38:5:185musr-bin.mount: Failed with result ‘protocol’.e\[0m
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 4 <smu_v14_0_0> (smu)
apr 08 17:27:09 desktop systemd\[1\]: usr-bin.mount: Unit process 1048 (mount.envfs) remains running after unit stopped.
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 5 <dce_v1_0_0> (dm)
apr 08 17:27:09 desktop systemd\[1\]: e\[0;1;31me\[0;1;39me\[0;1;31mFailed to mount /usr/bin.e\[0m
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 6 <gfx_v12_0_0> (gfx_v12_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 7 <sdma_v7_0_0> (sdma_v7_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 8 <vcn_v5_0_0> (vcn_v5_0_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 9 <jpeg_v5_0_0> (jpeg_v5_0_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: detected ip block number 10 <mes_v12_0_0> (mes_v12_0)
apr 08 17:27:09 desktop kernel: amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
apr 08 17:27:09 desktop kernel: amdgpu: ATOM BIOS: 113-EXT108828-100
apr 08 17:27:09 desktop systemd\[1\]: e\[0;1;38:5:185me\[0;1;39me\[0;1;38:5:185mDependency failed for /bin.e\[0m
apr 08 17:27:09 desktop systemd\[1\]: e\[0;1;39me\[0;1;31me\[0;1;39mbin.mount: Job bin.mount/start failed with result ‘dependency’.e\[0m
apr 08 17:27:09 desktop systemd\[1\]: Mounted /boot.

Can you post the contents of /etc/fstab?

Here you go

# This is a generated file.  Do not edit!
#
# To make changes, edit the fileSystems and swapDevices NixOS options
# in your /etc/nixos/configuration.nix file.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

# Filesystems.
/dev/disk/by-uuid/daa1ca34-8f43-4545-913b-731ca5d00892 / btrfs x-initrd.mount,compress=zstd,noatime,subvol=@ 0 0
none /usr/bin envfs bind-mount=/bin,fallback-path=/nix/store/xxv72zi281s2f6rkvx85mn5qwcpn7kg4-fallback-path,nofail 0 0
/usr/bin /bin none bind,nofail 0 0
/dev/disk/by-uuid/1FE6-FBCA /boot vfat fmask=0022,dmask=0022 0 2
/dev/disk/by-uuid/daa1ca34-8f43-4545-913b-731ca5d00892 /home btrfs compress=zstd,noatime,subvol=@home 0 0
/dev/disk/by-uuid/daa1ca34-8f43-4545-913b-731ca5d00892 /nix btrfs x-initrd.mount,compress=zstd,noatime,subvol=@nix 0 0
/dev/disk/by-uuid/daa1ca34-8f43-4545-913b-731ca5d00892 /swap btrfs subvol=@swap 0 0


# Swap devices.
/swap/swapfile none swap defaults

Those to bin related entries are weird, can you check your fileSystem entries?

If you are using flakes you can use nixos-rebuild repl to check :p config.fileSystems.

Do you perhaps have envfs installed ?

I have the same issue but its because envfs creates the /usr/bin envfs mount and a /bin bind mount pointing to it, in my case the boot warning is basically harmless since both entries have nofail

I figured it out following @NobbZ advice btw so thank you!