A
A
Alexander Volkov2019-09-19 13:57:53
linux
Alexander Volkov, 2019-09-19 13:57:53

How to add HDD information to efibootmgr Linux?

On a laptop, a hard drive is connected through a sled, it is displayed in the BIOS on the first tab with information, but it is not in the Boot Menu for booting. When the PC starts up, it opens the Boot Menu where there should be a list of hard drives (one is inserted), but the list is empty. I inserted the same hard drive into another laptop and rolled up the system, everything works properly as it should, through the adapter it also works fine as a regular drive, I think there can be no problem with it. On the DNS forum, a person had the same problem, he solved the problem by registering data about the hard disk through efibootmgr in any Linux
distribution

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Shi-Chuang, 2019-09-21
@hopel19

> I have a flash drive with the kali distribution, but this is the first time I've heard about efibootmgr, and I can't find the info on my problem
UEFI - an analog of the BIOS. It can directly load the kernel.
In my case:
efibootmgr -c -d /dev/sdc -p 2 -L "New kernel" -l vmlinuz -u "root=/dev/sdc5 rw initrd=\initramfsNew.img",
where
-d /dev/sdc - the device on which the kernel is located;
-p 2 - desired section;
-L "New kernel" - an inscription that is displayed in the Boot Menu.
-l vmlinuz - in fact, the path to the kernel. It can be in the form /efi/linux-5.2.16/vmlinuz
-u "root=/dev/sdc5 rw initrd=\initramfsNew.img" - the hardest part.
root=/dev/sdc5 - disk and partition with system root;
rw - mounted with RW flag;
initrd=\initramfsNew.img - path to the initramfs file, but with a backslash.
Since you have not heard about the technology, it is better to first check whether the hardware supports it, if the "/sys/firmware/efi" folder exists, then it does.
In more detail, then EFI is the technology itself, efibootmgr is the record manager. If everything goes to hell, you can mount the system and set up boot entries.

2
20ivs, 2019-09-19
@20ivs

here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question