bugGNU GRUB - Bugs: bug #35382, grub-install-generated EFI boot...

 
 

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

bug #35382: grub-install-generated EFI boot image cannot find prefix: "invalid sector size 65535".

Submitter:  Nick Bowler <draconx>
Submitted:  Fri 27 Jan 2012 03:51:01 AM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 28 Jan 2012 01:43:35 AM UTC, comment #2: 

With that patch, the system boots correctly.

Thanks!

Nick Bowler <draconx>
Fri 27 Jan 2012 12:22:10 PM UTC, comment #1: 

please try attached patch

(file #24903)

Vladimir Serbinenko <phcoder>
Group administrator
Fri 27 Jan 2012 03:51:01 AM UTC, original submission:  

I'm booting grub from EFI (x86_64).  However, the image that grub-install
generates fails to boot: I am presented with the (rather stark) error message
"invalid sector size 65535" and I am immediately dropped to the rescue shell.
Some quick poking around reveals that this error occurs whenever I attempt to
access (hd0), which I suspect is an empty card reader slot.

The system will boot correctly if I set prefix=(hd4,1)/boot/grub2; insmod
normal; normal at the rescue shell, but this means that unattended reboot is
impossible.  I've attached a photograph of a session with the rescue shell.

The grub manual ยง27.1 "GRUB only offers a rescue shell" says that "... it is
usually better to use UUIDs or file system labels and avoid depending on drive
ordering entirely." but it gives absolutely zero information about how one
goes about doing this.  The rest of the manual barely talks about uuids or
labels except in the context of the "search" command in grub.cfg, which is
obviously not applicable here.  I tried both

  grub-install UUID=b4202fb7-1102-4a95-a8a4-ce92e1620049

and

  grub-install LABEL=aura-root

to no avail.

One other place the manual mentions UUIDs is in the context of an embedded
config file.  Curious, I looked at how grub-install sets this up, and I see
that it only sets up UUID search if "disk_module" is nonempty (plus some other
possibilities that ostensibly don't apply to my setup).  However, disk_module
is unconditionally set to empty for EFI platforms and the (undocumented)
--disk-module option is silently ignored on non-BIOS platforms.  I edited the
script to set this up unconditionally (patch attached), re-ran grub-install and
the system boots unattended, although the error message "invalid sector size
65535" is still displayed for a moment before the menu appears.

Nick Bowler <draconx>

 

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

Attached Files
file #24903:  efidisj.diff added by phcoder (4KiB - text/x-diff)
file #24901:  grub-rescue.jpg added by draconx (77KiB - image/jpeg)
file #24902:  grub-install-uuid.patch added by draconx (838B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by draconx (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-01-28 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2012-01-27 phcoder Attached File- Added efidisj.diff, #24903
    2012-01-27 draconx Attached File- Added grub-rescue.jpg, #24901
        Attached File- Added grub-install-uuid.patch, #24902

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code