Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2 with efi [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
erthalion
n00b
n00b


Joined: 19 Sep 2012
Posts: 21

PostPosted: Mon Feb 09, 2015 12:49 pm    Post subject: grub2 with efi [Solved] Reply with quote

Hello, everyone

I have a strange problem about loading with grub2 and efi. Maybe I've missed something, but I'm trying to do this:

Code:
# mkdir /media/gentoo
# mount /dev/sda8 /media/gentoo/
# mount -t proc none /media/gentoo/proc/
# mount --rbind /dev/ /media/gentoo/dev
# mount --rbind /sys/ /media/gentoo/sys/
# chroot /media/gentoo/ /bin/bash

# env-update 
>>> Regenerating /etc/ld.so.cache...
# source /etc/profile
#


Code:

# parted -l
Model: ATA ST500LM000-SSHD- (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Warning: failed to translate partition name
Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  1050MB  1049MB  ntfs                                       hidden, diag
 2      1050MB  1322MB  273MB   fat32                                      boot, hidden, esp
 3      1322MB  2371MB  1049MB  fat32                                      hidden
 4      2371MB  2505MB  134MB                Microsoft reserved partition  msftres
 5      2505MB  108GB   106GB   ntfs         Basic data partition          msftdata
 8      108GB   459GB   350GB   ext4
 6      459GB   485GB   26.8GB  ntfs         Basic data partition          msftdata
 7      485GB   500GB   14.7GB  ntfs                                       hidden, diag


Code:
# mount /dev/sda2 /boot/efi/
# grub2-install --target=x86_64-efi --recheck --debug
....
grub2-install: info: copying `/boot/grub/x86_64-efi/core.efi' -> `/boot/efi/EFI/gentoo/grubx64.efi'.
grub2-install: info: Registering with EFI: distributor = `gentoo', path = `\EFI\gentoo\grubx64.efi', ESP at hostdisk//dev/sda,gpt2.
grub2-install: info: executing efibootmgr --version </dev/null >/dev/null.
grub2-install: info: executing modprobe -q efivars.
grub2-install: info: executing efibootmgr -b 0003 -B.
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,2001,0001,2002,2003
Boot0000* EFI USB Device (UFD 2.0 Silicon-Power8G)
Boot0001* Lenovo Recovery System
Boot0002* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
grub2-install: info: executing efibootmgr -c -d /dev/sda -p 2 -w -L gentoo -l \EFI\gentoo\grubx64.efi.
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0003,0002,2001,0001,2002,2003
Boot0000* EFI USB Device (UFD 2.0 Silicon-Power8G)
Boot0001* Lenovo Recovery System
Boot0002* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
Boot0003* gentoo
Installation finished. No error reported.

 # grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-genkernel-x86_64-3.17.8-gentoo-r1
Found initrd image: /boot/initramfs-genkernel-x86_64-3.17.8-gentoo-r1
Found Windows Recovery Environment (loader) on /dev/sda3
Found Windows 8 (loader) on /dev/sda5
done

 # efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0003,0002,2001,0001,2002,2003
Boot0000* EFI USB Device (UFD 2.0 Silicon-Power8G)   ACPI(a0341d0,0)PCI(14,0)USB(1,0)HD(1,203f,efe782,c3072e18)RC
Boot0001* Lenovo Recovery System   HD(3,276800,1f4000,478687c7-6120-42c7-93ab-5e3103e1b9ee)File(\EFI\Microsoft\Boot\LrsBootMgr.efi)RC
Boot0002* Windows Boot Manager   HD(2,1f4800,82000,025a7d4d-2436-4fec-8e12-c34679d2d76b)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...{................
Boot0003* gentoo   HD(2,1f4800,82000,025a7d4d-2436-4fec-8e12-c34679d2d76b)File(\EFI\gentoo\grubx64.efi)
Boot2001* EFI USB Device   RC
Boot2002* EFI DVD/CDROM   RC
Boot2003* EFI Network   RC


But after the reboot I see Window 8 loader again. How can I figure out, what's going wrong (any logs, or debug messages)? Or maybe you can see, that there is some stupid error?


Last edited by erthalion on Tue Feb 10, 2015 2:21 am; edited 1 time in total
Back to top
View user's profile Send private message
erthalion
n00b
n00b


Joined: 19 Sep 2012
Posts: 21

PostPosted: Tue Feb 10, 2015 2:21 am    Post subject: Reply with quote

I solved problem - the option "Secure boot=Enabled" in BIOS was a culprit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum