5
5
5tgb5tgb2018-10-09 20:58:02
CentOS
5tgb5tgb, 2018-10-09 20:58:02

How to fix CentOS boot (UEFI+GPT)?

Comrades, help me out. I'm new to Linux and I've encountered the following problem: I
have a laptop (lenovo y510p bios updated to the latest version) with UEFI, and there are two hard drives (both marked in gpt) that are swapped: HDD1 with Windows10 and HDD2 with CentOS7. At first, a disk with Windows worked in the laptop, after that HDD2 with centos worked there. If you then work on Windows again and try to start centos, you get the following error:
Failed to open \EFI\BOOT\grubx64.efi - Not Found
Failed to load image \EFI\BOOT\grubx64.efi: Not Found
start_image() returned Not Found

All this is treated according to the manual with peekaboo LINK

The manual itself:

1. Зайти в BIOS, и установить для пункта Boot Mode значение UEFI.
2. Запуститься с загрузочной флешки и открыть терминал.
3. В терминале получить root-права.
4. Выполнить следующие команды:
su root
mount /dev/centos/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
modprobe efivars
chroot/mnt
efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi"

Help me fix it and, if possible, figure out the reasons. I read a bunch of articles on UEFI on Habré ( for example ), but I don’t understand what the problem is in this case. Does Windows write its own entry to NVRAM every time it boots? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question