P
P
P_Alexander2019-10-21 23:23:06
Windows
P_Alexander, 2019-10-21 23:23:06

How to restore bootloader after BIOS update?

Good evening, I updated the BIOS, the bootloader crashed and I can’t restore the bootloader to select the desired OS.
Worth Windows and Fedora. I installed the first Windows then via UEFI to Fedor.
Now Windows is loaded by default, but I can also use Fedora but through BOOT from the BIOS.
I want to restore the bootloader! Help!
What am I doing!?
1 I go through the life flash drive, opened the terminal, went from the root, called the f-disk.

sudo su -
fdisk-l

I have two disks 1 - on a terobyte and on it is an EFI partition disk (Disk) / dev / sda. (Device)efi partition /dev/sda2
(Device)/dev/sda7 - I just allocated a piece for myself under Fedora ...
On the second ssd, the whole Fedora (Disk) /dev/nvme0n1 - a whole disk for Fedora
(Disk) /dev/mapper/fedora-root
(Disk) /dev/mapper/fedora-home
mkdir mnt/root
Монтирую нужные разделы
mount /dev/mapper/fedora-root   /mnt/root
mount /dev/sda2   /mnt/root/boot/ ---- efi раздел
mount -o bind /dev /mnt/root/dev
mount -o bind /proc /mnt/root/proc
mount -o bind /sys /mnt/root/sys
mount -o bind /run /mnt/root/run
chroot /mnt/root

now I install a hornbeam
grub-install /dev/sda
bash: grub-install: command not found
Why such a conclusion? And how do I restore the bootloader !? Thanks to all!
UPDATE - I have grub2 and when I type grub2-install this output is -
grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesnt exist. Please specify --target or --directory

5dae14acbb78a737604044.jpeg
5dae14b9bec97984952651.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2019-10-22
@fshp

  1. The EFI partition must be mounted at /boot/efi .
    Your option is also possible, but the fedora installer should not do this.
    See if the kernel and iniramfs are in /boot . If so, then mount the EFI partition at /boot/efi .
    Fedora wiki

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question