Skip to content

[BUG]: e2fsck has unsupported feature(s): FEATURE_C12 #229450

@lucky9-cyou

Description

@lucky9-cyou

Describe the bug

When I mounted my archlinux ext4 partition, add following lines in hardware-configure.nix:

fileSystems."/mnt/archlinux" =
  { device = "/dev/disk/by-uuid/83cd3978-aa18-4f38-b1cb-3d77ab8f46ea";
    fsType = "ext4";
    options = ["nofail"];
  };

I got following error:

warning: the following units failed: systemd-fsck@dev-disk-by\x2duuid-83cd3978\x2daa18\x2d4f38\x2db1cb\x2d3d77ab8f46ea.service

× systemd-fsck@dev-disk-by\x2duuid-83cd3978\x2daa18\x2d4f38\x2db1cb\x2d3d77ab8f46ea.service - File System Check on /dev/disk/by-uuid/83cd3978-aa18-4f38-b1cb-3d77ab8f46ea
     Loaded: loaded (/etc/systemd/system/[email protected]; static)
    Drop-In: /nix/store/jw3fxhphlsclz87w4sl8iax1k7zmxfc9-system-units/[email protected]
             └─overrides.conf
     Active: failed (Result: exit-code) since Tue 2023-05-02 18:12:16 CST; 51ms ago
       Docs: man:[email protected](8)
    Process: 4492 ExecStart=/nix/store/zbgzqym70ca90228l9z9jzzwbn0wdd22-systemd-253.3/lib/systemd/systemd-fsck /dev/disk/by-uuid/83cd3978-aa18-4f38-b1cb-3d77ab8f46ea (code=exited, status=1/FAILURE)
   Main PID: 4492 (code=exited, status=1/FAILURE)
         IP: 0B in, 0B out
        CPU: 4ms

May 02 18:12:16 nixos systemd[1]: Starting File System Check on /dev/disk/by-uuid/83cd3978-aa18-4f38-b1cb-3d77ab8f46ea...
May 02 18:12:16 nixos systemd-fsck[4494]: /dev/nvme0n1p2 has unsupported feature(s): FEATURE_C12
May 02 18:12:16 nixos systemd-fsck[4494]: e2fsck: Get a newer version of e2fsck!
May 02 18:12:16 nixos systemd-fsck[4494]: /dev/nvme0n1p2: ********** WARNING: Filesystem still has errors **********
May 02 18:12:16 nixos systemd-fsck[4492]: fsck failed with exit status 12.
May 02 18:12:16 nixos systemd[1]: systemd-fsck@dev-disk-by\x2duuid-83cd3978\x2daa18\x2d4f38\x2db1cb\x2d3d77ab8f46ea.service: Main process exited, code=exited, status=1/FAILURE
May 02 18:12:16 nixos systemd[1]: systemd-fsck@dev-disk-by\x2duuid-83cd3978\x2daa18\x2d4f38\x2db1cb\x2d3d77ab8f46ea.service: Failed with result 'exit-code'.
May 02 18:12:16 nixos systemd[1]: Failed to start File System Check on /dev/disk/by-uuid/83cd3978-aa18-4f38-b1cb-3d77ab8f46ea.
warning: error(s) occurred while switching to the new configuration

And I use e2fsck 1.47.0, I didn't get this error. The output is following:

[lucky@nixos:~/Downloads/e2fsprogs-1.47.0/e2fsck]$ sudo ./e2fsck /dev/nvme0n1p2
e2fsck 1.47.0 (5-Feb-2023)
/dev/nvme0n1p2: clean, 1738331/122036224 files, 65701918/488128256 blocks

My current e2fsck version is 1.46.6. Maybe we need to update the e2fsck version with unstable channel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions