Bug 4930 - EFI boot failed on Dell notebook
: EFI boot failed on Dell notebook
Status: RESOLVED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: x86_64 Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-20 19:15 MSK by Andrey Ponomarenko
Modified: 2015-07-07 23:12 MSD (History)
1 user (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments
HOWTO add ROSA boot option to EFI #1 (1.93 MB, image/jpeg)
2015-01-20 22:16 MSK, Andrey Ponomarenko
Details
HOWTO add ROSA boot option to EFI #2 (1.95 MB, image/jpeg)
2015-01-20 22:17 MSK, Andrey Ponomarenko
Details
HOWTO add ROSA boot option to EFI #3 (2.03 MB, image/jpeg)
2015-01-20 22:17 MSK, Andrey Ponomarenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Ponomarenko 2015-01-20 19:15:17 MSK
Description of problem:

I have Dell Latitude E6530 notebook with ROSA R5 and pre-installed Windows 7 in Legacy mode.

I've tried to install the ROSA R5 in EFI mode, but computer just shows black screen after reboot:

No bootable devices--strike F1 to retry boot, F2 for setup utility
    Press F5 to run onboard diagnostics.

I've added a new option "ROSA R5" to EFI manually in BIOS settings pointing to \EFI\rosa\grubx64.efi and then ROSA boots fine.

Why it haven't been automatically added to EFI by the installer?

HW probe: http://hw.rosalinux.ru/index.php?probe=4926481e1f

Version-Release number of selected component (if applicable):

R5 KDE x86_64

How reproducible: always


Steps to Reproduce:
1. Try to install and boot ROSA R5 in EFI mode
2. 
3.
Comment 1 Andrey Ponomarenko 2015-01-20 19:26:05 MSK
Also grub doesn't show Windows 7 in the list of systems to boot if EFI mode is enabled.
Comment 2 Konstantin Vlasov 2015-01-20 20:25:42 MSK
(In reply to comment #0)
> Why it haven't been automatically added to EFI by the installer?

I found the source of the problem: efibootmgr does not support adding UEFI bootloader entries when EFI partition is located on an MBR-partitioned disk and is logical (not primary).

Just in case, could you please show the output of the command
# efibootmgr -v
now that you added the boot entry manually?


(In reply to comment #1)
> Also grub doesn't show Windows 7 in the list of systems to boot if EFI mode
> is enabled.

It seems, detecting legacy bootloaders does not work in UEFI grub installation. Please, copy here the file /boot/grub2/grub.cfg from the ROSA installed legacy BIOS mode. You can also try to copy the Windows menuentry from it into the grub.cfg of your UEFI ROSA. I'm not sure, but there's a chance it will work.
Comment 3 Andrey Ponomarenko 2015-01-20 20:58:29 MSK
(In reply to comment #2)
> Just in case, could you please show the output of the command
> # efibootmgr -v


It shows only manually added "ROSA R5":

[root@Dell-E6530 andrey]# efibootmgr -v

BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0002,0003,0004,0005,0000
Boot0000* ROSA R5       ACPI(a0341d0,0)PCI(1f,2)Vendor(cf31fac5-c24e-11d2-85f3-00a0c93ec93b,80)HD(7,1abb0800,ff800,00000000)File(\EFI\rosa\grubx64.efi)
Boot0001* Diskette Drive        BIOS(1,0,4469736b6574746520447269766500)AMBO
Boot0002* Internal HDD  BIOS(2,0,50303a2053414d53554e472053534420534d38343120322e352220376d6d20323536474200)AMBO
Boot0003* USB Storage Device    BIOS(5,0,5553422053746f726167652044657669636500)AMBO
Boot0004* CD/DVD/CD-RW Drive    BIOS(3,0,50313a204d41545348495441204456442b2f2d525720554a38433220202000)AMBO
Boot0005* Onboard NIC   BIOS(6,0,49424120474520536c6f74203030433820763135353000)AMBO
BootFFFA* Internal Shell        Vendor(5990c250-676b-4ff7-8a0d-529319d0b254,)
BootFFFB* Diagnostic Boot       Vendor(5990c250-676b-4ff7-8a0d-529319d0b254,)
BootFFFC* Temporary Boot Menu   Vendor(5990c250-676b-4ff7-8a0d-529319d0b254,)
BootFFFD* Graphic Setup         Vendor(5990c250-676b-4ff7-8a0d-529319d0b254,)
BootFFFE* Text Setup            Vendor(5990c250-676b-4ff7-8a0d-529319d0b254,)
Comment 4 Andrey Ponomarenko 2015-01-20 21:00:44 MSK
EFI boot partition is:

Filesystem    Size  Used  Avail  Use%  Mounted on
/dev/sda8     510M  5.1M  505M   1%    /boot/efi
Comment 5 Andrey Ponomarenko 2015-01-20 21:02:29 MSK
grub2-efi-install failed to install GRUB:

[root@Dell-E6530 andrey]# grub2-efi-install /dev/sda8 

BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,0002,0003,0004,0005
Boot0001* Diskette Drive
Boot0002* Internal HDD
Boot0003* USB Storage Device
Boot0004* CD/DVD/CD-RW Drive
Boot0005* Onboard NIC
BootFFFA* Internal Shell       
BootFFFB* Diagnostic Boot      
BootFFFC* Temporary Boot Menu  
BootFFFD* Graphic Setup        
BootFFFE* Text Setup    
       
Extended partition info not supported.
Error: no partition information on disk /dev/sda.
       Cowardly refusing to create a boot option.

Installation finished. No error reported.
Comment 6 Konstantin Vlasov 2015-01-20 21:30:59 MSK
Thank you for the data. Yes, that's the problem. In the meantime I've looked into efibootmgr code and, indeed, extended MBR partition (and therefore, logical partitions) are not yet supported.

I think I'll be able to write a patch for supporting them, but for now we should update our Errata that either GPT should be used, or MBR with a primary EFI partition, or that user will have to add bootloader entry manually (if the BIOS implements this function, which is quite a rare function).
Comment 7 Andrey Ponomarenko 2015-01-20 22:16:42 MSK
Created attachment 3659 [details]
HOWTO add ROSA boot option to EFI #1
Comment 8 Andrey Ponomarenko 2015-01-20 22:17:16 MSK
Created attachment 3660 [details]
HOWTO add ROSA boot option to EFI #2
Comment 9 Andrey Ponomarenko 2015-01-20 22:17:47 MSK
Created attachment 3661 [details]
HOWTO add ROSA boot option to EFI #3
Comment 10 Andrey Ponomarenko 2015-07-07 23:12:42 MSD
The issue has been fixed in the latest images of ROSA Linux.

HW probe: http://hw.rosalinux.ru/index.php?probe=3affe0103a