Package: e2fsprogs
Version: 1.44.5-1+deb10u3
Severity: normal

Dear Maintainer,

at first, I am sorry to tell I cannot provide the raw data. I was quite
in a hurry and overwrote it before realizing its high value for
debugging.

Story: An ext2 file system, actually a boot partition, suffered severe
damage for whatever reason, possibly controller issues. After massive
repair done by e2fsck (on amd64, from Debian testing), the file system
was clean and usable again (also, no damage to the important files but a
lot of garbage in lost+found), *but* the kernel no longer recognizes it
as ext2:

  EXT4-fs (sdf3): mounted filesystem without journal. Opts: (null)

Expected:

  EXT4-fs (sdf3): mounting ext2 file system using the ext4 subsystem

There are additional message about fscrypt, not anything that was actually used.

  fscrypt (sdf3, inode 41995): Error -61 getting encryption context

Therefore I assume e2fsck, while repairing the damage, by accident
enabled some feature bits that made the kernel think it is dealing with
an ext4. This wouldn't have been a big problem if the bootloader of that
box had ext4 support, but well, it's yaboot on powerpc, dinosaur, dodo,
all that stuff.

As I said, the raw image is destroyed. However I kept the output of
"tune2fs -l" (again, from testing), possibly this provides enough hint
to investigate?

The first ("broken") is from the broken blockdev. It used to work for
many year (note the creation timestamp). The second one ("okay") is
from a newly created file system.

If all this provides enough input to validate my assumption, I'd be
glad to see a fix. If you cannot proceed without looking into the raw
data, well, all we could hope this happens again some day. I wouldn't
hold my breath, though.

    Christoph

-- System Information:
Debian Release: 10.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.10 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages e2fsprogs depends on:
ii  libblkid1    2.33.1-0.1
ii  libc6        2.28-10
ii  libcom-err2  1.44.5-1+deb10u3
ii  libext2fs2   1.44.5-1+deb10u3
ii  libss2       1.44.5-1+deb10u3
ii  libuuid1     2.33.1-0.1

Versions of packages e2fsprogs recommends:
pn  e2fsprogs-l10n  <none>

Versions of packages e2fsprogs suggests:
ii  e2fsck-static  1.44.5-1+deb10u3
pn  fuse2fs        <none>
pn  gpart          <none>
pn  parted         <none>

-- Configuration Files:
/etc/mke2fs.conf changed [not included]

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to