bugGNU GRUB - Bugs: bug #60565, GRUB 2.06-rc1 doesn't detect a FAT...

 
 

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

bug #60565: GRUB 2.06-rc1 doesn't detect a FAT filesystem

Submitter:  Naïm Favier <ncfavier>
Submitted:  Sun 09 May 2021 06:32:37 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Hardware-specific
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Mon 30 May 2022 04:02:42 PM UTC, comment #3: 

I ran into this today. The EFI file system itself wasn't readable. The reason was some corruption, fsck created a bunch of FSCKxxx.REC files with zero timestamps. This made this check fail:

fat.c

      if (info.mtimeset == 0)
        grub_error (GRUB_ERR_OUT_OF_RANGE,
                    "invalid modification timestamp for %s", path);


Deleting the files "fixed" this, and I didn't dig any further. I think the code checks the timestamp on /, so maybe that was corrupted, and deleting files just updated the timestamp. I  didn't have enough patience trying to reproduce this by meddling with timestamps.

Pawel Veselov <pveselov>
Thu 20 May 2021 10:20:51 PM UTC, comment #2: 

An issue was opened over at nixpkgs, and someone was able to bisect the bug to commit 20def1a3c3952982395cd7c3ea7e78638527962b, which was introduced in response to bug #57621.

Naïm Favier <ncfavier>
Sun 09 May 2021 06:43:51 PM UTC, comment #1: 

(I accidentally submitted without a body.)

If I

1. Download one of the latest NixOS unstable ISO images, e.g. https://releases.nixos.org/nixos/unstable/nixos-21.05pre287333.63586475587/nixos-minimal-21.05pre287333.63586475587-x86_64-linux.iso
2. Burn it to an USB/DVD and boot it in EFI mode

I get dropped in a GRUB shell (prompt "grub>"). If I type "ls (hd0,msdos2)" (where hd0 is the USB stick), I get an error like "No known filesystem detected" where there should be a FAT32 filesystem.

This doesn't happen with GRUB 2.04. For comparison, here is a similar image with 2.04 instead of 2.06-rc1: https://releases.nixos.org/nixos/unstable/nixos-21.05pre273435.0aeba64fb26/nixos-minimal-21.05pre273435.0aeba64fb26-x86_64-linux.iso

The bug seems to be hardware-specific. I am using a Lenovo ThinkPad T420, and someone else was able to reproduce the bug on a T420.

Naïm Favier <ncfavier>
Sun 09 May 2021 06:32:37 PM UTC, original submission:  


Naïm Favier <ncfavier>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 pveselov (Posted a comment)
  • -email is unavailable- added by ncfavier (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code