grub2 doesn't recognize ext4 with metadata_csum_seed enabled

Bug #1844012 reported by Jim Bray
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Debian)
Fix Released
Unknown
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

/usr/lib/grub/x86_64-efi/ext2.mod, from:

grub-efi-amd64-bin:
  Installed: 2.02-2ubuntu8.13
  Candidate: 2.02-2ubuntu8.13

doesn't recognize an ext4 filesystem with metadata_csum_seed set.

This is true in command-line grub, not just the update-grub software. Attempting

linux (hdx,gptx)/ etc

on an ext4 fs with metadata_csum enabled fails; removing the metadata_csum_seed option fixes this.

The failure is "unknown filesystem" for any ext4 fs with metadata_csum_seed set. Apparently saving the metadata checksum seed in the superblock changes it beyond recognition for grub.

 The message appears to be coming from
grub-2.04/grub-core/kern /fs.c:

grub_fs_t
grub_fs_probe (grub_device_t device)
{....
 grub_error (GRUB_ERR_UNKNOWN_FS, N_("unknown filesystem"));
}
which appears to probe for filesystems by calling the fs modules to attempt to mount it.

I tried to install latest grub from eaon to see if upstream has fixed this, but it depended on too much other unreleased software such as libc6.

I pulled the 2.04 source. There is nothing in the Changelog that appears to address this.

from `man ext4`:
 metadata_csum_seed
              This feature allows the filesystem to store the metadata checksum seed in the superblock, which allows the administrator to change the UUID of a filesystem using the metadata_csum feature while it is mounted.

Jim Bray (jimsantelmo)
description: updated
tags: added: metadata-csum-seed
removed: metadata-csum
summary: - grub2 doesn't recognize ext4 with metadata_csum enabled
+ grub2 doesn't recognize ext4 with metadata_csum_seed enabled
Jim Bray (jimsantelmo)
description: updated
description: updated
Jim Bray (jimsantelmo)
description: updated
description: updated
description: updated
Jim Bray (jimsantelmo)
description: updated
Revision history for this message
Jim Bray (jimsantelmo) wrote :

This bug has also been reported here:
https://savannah.gnu.org/bugs/index.php?56897

I have built and installed grub 2.04 and it still doesn't deal with metadata_csum_seed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Adrien Beau (adrienbeau) wrote :

The bug is still present in version 2.04-1ubuntu26.6 in focal.

Revision history for this message
Adrien Beau (adrienbeau) wrote :

Note that this is not limited to metadata_csum_seed, other "recently" added ext4 features cannot be used on the system partition (and maybe the whole system disk, if you have other ext4 partitions there with such features).

At least confirmed to not work with GRUB:

- metadata_csum_seed
- ea_inode
- large_dir
- casefold

Changed in grub2 (Debian):
status: Unknown → Confirmed
Changed in grub2 (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.