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

Submitter:  Mildred <mildred>
Submitted:  Wed 16 Nov 2011 01:32:05 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  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>
Group 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>
Group 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>
Group 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>

 

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

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
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by mildred (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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-31 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2011-11-18 mildred Attached File- Added sda1, #24394

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code