Closed nerdatwork closed 1 month ago
This error message is coming from the following code path in e2fsck:
if (ctx->flags & E2F_FLAG_RESTARTED) {
/*
* Whoops, we attempted to run the
* journal twice. This should never
* happen, unless the hardware or
* device driver is being bogus.
*/
com_err(ctx->program_name, 0,
_("unable to set superblock flags "
"on %s\n"), ctx->device_name);
fatal_error(ctx, 0);
}
In other words, it looks like e2fsck attempted to write to the primary superblock, and that write is apparently not being persisted. What I would suggest doing is to obtaining another 4TB drive, and then using a tool like ddrescue to copy the file system image to the new hardware, and then try running e2fsck on that new drive.
I am unable to successfully execute
fsck
for a 4TB NVMe drive.I tried using backup superblocks but they all fail with above output. The drive has around 80GB of data.
Please help me fix this issue.