bugGNU GRUB - Bugs: bug #56897, Boot fails for ext4 filesystems...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56897: Boot fails for ext4 filesystems with certain features enabled

Submitted by:  tommy0910@gmail.com <tommy0910>
Submitted on:  Sun 15 Sep 2019 07:35:13 AM UTC  
Votes:  1  
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  2.02~beta1 Reproducibility:  Every Time
Planned Release:  None

Mon 16 Sep 2019 10:56:22 PM UTC, comment #2: 

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

Jim Bray <jbray>
Mon 16 Sep 2019 10:24:18 PM UTC, comment #1: 

Details from report of this bug for metadata_csum_seed:

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1844012

/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 <jbray>
Sun 15 Sep 2019 07:35:13 AM UTC, original submission:  

I observe that GRUB 2.04 fails to boot an ext4 filesystem which has one of the following features enabled:

large_dir
metadata_csum_seed
casefold

My configuration is Arch linux, kernel 5.2, GRUB 2.04, ext2fsprogs 1.45.3

Steps to reproduce: install Arch from current 2019.08.01 release ISO; create new ext4 filesystem; enable one of the ext4 fs features mentioned (use common fs for both root and boot); configure grub to boot from this filesystem

Result:

error: unknown filesystem
Entering rescue mode...

tommy0910@gmail.com <tommy0910>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jbray (Posted a comment)
  • -email is unavailable- added by jbray (Voted in favor of this item)
  • -email is unavailable- added by tommy0910 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-16 jbray Carbon-Copy- => Added jbray

    Back to the top


    Powered by Savane 3.5