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".

Submitted by:  Nick Bowler <draconx>
Submitted on:  Fri 27 Jan 2012 03:51:01 AM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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>
Project 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>

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 28 Jan 2012 12:30:54 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 27 Jan 2012 12:22:10 PM UTCphcoderAttached File-=>Added efidisj.diff, #24903
    Fri 27 Jan 2012 03:51:01 AM UTCdraconxAttached File-=>Added grub-rescue.jpg, #24901
      Attached File-=>Added grub-install-uuid.patch, #24902

    Back to the top


    Powered by Savane 3.1-cleanup1