View previous topic :: View next topic |
Author |
Message |
erus n00b
Joined: 14 Apr 2012 Posts: 36
|
Posted: Fri Sep 18, 2015 1:27 pm Post subject: Problem setting EFI |
|
|
Hello,
I have a problem at the end of the installation when it comes to installing a boot loader, I have an EFI system.
I have tried efibootmgr :
Code: |
(chroot) livecd / # efibootmgr --create --disk /dev/sda --part 5 --label "Gentoo" --loader "\efi\boot\bootx64.efi"
efibootmgr: Skipping unreadable variable "Boot0000": Input/output error
efibootmgr: Skipping unreadable variable "Boot0004": Input/output error
efibootmgr: Skipping unreadable variable "Boot0005": Input/output error
efibootmgr: Could not set variable Boot0000: Input/output error
efibootmgr: Could not prepare boot variable: Input/output error
|
I can't erase those entries that are unreadable.
and grub2 :
Code: | (chroot) livecd / # grub2-install --target=x86_64-efi --efi-directory=/boot/efi
Installing for x86_64-efi platform.
efibootmgr: Skipping unreadable variable "Boot0000": Input/output error
efibootmgr: Skipping unreadable variable "Boot0004": Input/output error
efibootmgr: Skipping unreadable variable "Boot0005": Input/output error
efibootmgr: Skipping unreadable variable "Boot0000": Input/output error
efibootmgr: Skipping unreadable variable "Boot0004": Input/output error
efibootmgr: Skipping unreadable variable "Boot0005": Input/output error
efibootmgr: Could not set variable Boot0000: Input/output error
efibootmgr: Could not prepare boot variable: Input/output error
Installation finished. No error reported. |
After chatting on the irc I have been told to reset my EFI, but I couldn't find out how to do it.
It is a dual boot with windows 10 and just before I start installing Gentoo, Fedora was in place.
Thank you. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Fri Sep 18, 2015 1:36 pm Post subject: |
|
|
Who made your computer and what model? May be a nonstandard machine here.... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
erus n00b
Joined: 14 Apr 2012 Posts: 36
|
Posted: Fri Sep 18, 2015 1:40 pm Post subject: |
|
|
It is a Surface Pro 3 |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Sep 18, 2015 6:13 pm Post subject: |
|
|
erus ... you didn't say what boot medium you're using, if its a gentoo minimal CD image then this doesn't support efi ... you'd need to use sysrescuecd or some other boot disk that boots in efi mode. Also, be aware that ~arch versions of efibootmgr (> 0.5.4-r1) require CONFIG_EFIVAR_FS (which is a fairly recent addition to the kernel, and may not be enabled, or available, on whatever boot disk you're using).
HTH & best ... khay |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Fri Sep 18, 2015 6:43 pm Post subject: |
|
|
When booted on a valid EFI Linux media in EFI mode, manipulate the EFI variables with efibootmgr with the root account of this media. This is preferable in my experience to use the root account of the host system instead of the root account of Gentoo in chroot when manipulating EFI variables.
I ever had problems, not installing Grub2, but to make the EFI firmware accept the variables modifications (boot order) in chroot even if efibootmgr report no errors. It succeed not being in chroot. I tell you that in the case you incounter problems in chroot. _________________ Paul |
|
Back to top |
|
|
erus n00b
Joined: 14 Apr 2012 Posts: 36
|
Posted: Sat Sep 19, 2015 7:26 am Post subject: |
|
|
Quote: | erus ... you didn't say what boot medium you're using, if its a gentoo minimal CD image then this doesn't support efi ... you'd need to use sysrescuecd or some other boot disk that boots in efi mode. Also, be aware that ~arch versions of efibootmgr (> 0.5.4-r1) require CONFIG_EFIVAR_FS (which is a fairly recent addition to the kernel, and may not be enabled, or available, on whatever boot disk you're using).
|
I'm using "gentoo live dvd amd64 multilib" used Rufus to create live usb key with efi partition.
CONFIG_EFIVAR_FS was enabled as a module but I installed it into the kernel directly, it didn't change anything same errors.
efibootmgr version is 0.12 .
Quote: | When booted on a valid EFI Linux media in EFI mode, manipulate the EFI variables with efibootmgr with the root account of this media. This is preferable in my experience to use the root account of the host system instead of the root account of Gentoo in chroot when manipulating EFI variables.
I ever had problems, not installing Grub2, but to make the EFI firmware accept the variables modifications (boot order) in chroot even if efibootmgr report no errors. It succeed not being in chroot. I tell you that in the case you incounter problems in chroot. |
I'm booting on a EFI partion made by rufus using efi capable live dvd as stated above.
Unfortunately efibootngr is not installed on the live dvd so I cannot manipule the EFI variables .
I can modifiate the boot order but I cannot delete boot entries that have input/output errors. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Sep 19, 2015 12:51 pm Post subject: |
|
|
erus wrote: | I'm using "gentoo live dvd amd64 multilib" used Rufus to create live usb key with efi partition. |
erus ... I can't say if this image supports efi or not.
erus wrote: | CONFIG_EFIVAR_FS was enabled as a module but I installed it into the kernel directly, it didn't change anything same errors. |
You're not booting that kernel, but the kernel available on the boot disk.
erus wrote: | efibootmgr version is 0.12. |
I have >=sys-boot/efibootmgr-0.11.0 in package.mask as I'd read too many reports of issues, you might try 0.5.4-r1.
erus wrote: | Unfortunately efibootngr is not installed on the live dvd so I cannot manipule the EFI variables. |
It is available on sysresccd ...
best ... khay |
|
Back to top |
|
|
erus n00b
Joined: 14 Apr 2012 Posts: 36
|
Posted: Mon Sep 21, 2015 8:20 am Post subject: |
|
|
Sorry for taking so long, I have used system rescue cd and it worked flawlessly to set it.
Now that I boot I have a kernel panic: "not syncing: VFS : Unable to mount root fs on unknown block(0,0).
I have checked my kernel for missing driver or filesystem , everything seems t obe in order, I would guess that I have made mistake setting efibootmgr.
here is my disk :
Code: | Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B82A59AE-436F-45CD-A88C-A2A6E8E0CD84
Device Start End Sectors Size Type
/dev/sda1 2048 739327 737280 360M Windows recovery environment
/dev/sda2 739328 1148927 409600 200M EFI System
/dev/sda3 1148928 1411071 262144 128M Microsoft reserved
/dev/sda4 1411072 148279295 146868224 70G Microsoft basic data
/dev/sda5 148279296 148541439 262144 128M EFI System
/dev/sda6 148541440 152735743 4194304 2G Microsoft basic data
/dev/sda7 152735744 250067631 97331888 46.4G Microsoft basic data
|
and here is the setting I have put into efibootmgr :
Code: | efibootmgr --create --disk /dev/sda --part 5 --label "Gentoo" --loader "\efi\boot\bootx64.efi" |
I have another issue, I don't have a selection to choose between gentoo or linux at boot. I don't know if this is part of using efibootmgr.
Thank you
Edit:
I have tried set efibootmgr on part 2 and it didn't work, it brought back Fedora option which has been erased from the disk to install gentoo... |
|
Back to top |
|
|
|