bugGNU GRUB - Bugs: bug #34840, grub 1.99 fails to detect FAT...

 
 

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

bug #34840: grub 1.99 fails to detect FAT filesystem on EFI Partition

Submitted by:  Mildred <mildred>
Submitted on:  Wed 16 Nov 2011 01:32:05 PM UTC  
 
Category: FilesystemSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: None
Planned Release: None

Tue 31 Jan 2012 10:44:57 PM UTC, comment #5:

I've removed that check of FAT string. Now should work. If it doesn't please reopen.

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 19 Nov 2011 09:03:35 AM UTC, comment #4:

On quick look the mkfs in question didn't fill "FAT32" signature, perhaps something else as well. Have no time to do it now

Vladimir Serbinenko <phcoder>
Project Administrator
Fri 18 Nov 2011 09:36:10 AM UTC, comment #3:

I can provide the complete partition dump. 55M bzipped.

I am wondering if I could solve this problem by formatting the FAT partition, to get a clean state. Ideally, GRUB should be able to detect this one though.

Mildred <mildred>
Fri 18 Nov 2011 09:06:28 AM UTC, comment #2:

I attached the first 32K of the sda1 partition. I used dd version 8.12

dd if=/dev/sda1 of=sda1 bs=1K count=32

I also checked that the sda41 partition as seen by the linux kernel starts at the sector 40. I can get the exact same file using:

dd if=/dev/sda of=sda1- bs=512 count=64 skip=40

(file #24394)

Mildred <mildred>
Wed 16 Nov 2011 03:58:45 PM UTC, comment #1:

Can you submit the first 32K of the partition in question?

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 16 Nov 2011 01:32:05 PM UTC, original submission:

I have a system which has an EFI partition, formatted as FAT. But GRUB doesn't recognize it is a FAT filesystem. Consequently, GRUB don't find its configuration file and defaults to the command line.

I set debug=all and all I could find that was of interest was:

grub> ls (hd1,gpt1)
...
kern/disk.c:245: Opening `hd1,gpt1'
disk/efi/efidisk.c:508: opening hd1
disk/efi/efidisk.c:538: m = 0x7de9c448, last block = df94daf, block size = 200
disk/efi/efidisk.c:543: opening hd1 succeeded
disk/efi/efidisk.c:571: reading 0x8 sectors at the sector 0x0 from hd1
partmap/gpt.c:86: Read a valid GPT header
partmap/gpt.c:110: GPT entry 0: start=40, length=409600
kern/fs.c:54: Detecting ext2...
disk/efi/efidisk.c:571: reading 0x8 sectors at the sector 0x28 from hd1
kern/fs.c:60: ext2 detection failed.
kern/fs.c:54: Detecting fat...
kern/fs.c:60: fat detection failed.
kern/disk.c:330: Closing `hd1'.
disk/efi/efidisk.c:552: closing hd1
error: unknown filesystem
...

(hd0) is the USB key, and (hd0,msdos1) is FAT, and GRUB detect it correctly.

Mildred <mildred>

 

Attached Files
file #24394:  sda1 added by mildred (32KiB - application/octet-stream - first 32K of sda1)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by mildred (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 31 Jan 2012 10:44:57 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 18 Nov 2011 09:06:28 AM UTCmildredAttached File-=>Added sda1, #24394

    Back to the top


    Powered by Savane 3.1-cleanup1