Complete most of the kernel configuration and rebuild by running the kernel with the following command:

Remember the following to help you copy the newly compiled kernel image to the /boot folder. If mounted correctly /boot.

if Bootloader Is Improved

If the kernel version cannot be used, there is no need to upgrade the system boot computer. It depends on the software configuration; If the extended loader is frequently loaded into a binary replacement file with the exact same name, the secondary loader entries may not be updated. If you are in doubt again, run the clog and bootloader config generator or check the entire bootloader config file to troubleshoot an upcoming system reboot.

Using GRUB2

Does Gentoo use GRUB?

By default, most Gentoo systems now use GRUB in (located in your sys-boot/grub package), which is the outright GRUB Legacy winner. Without additionalYour GRUB2 setup supports older BIOS systems (“PCs”).

Does Gentoo use grub?

Therefore, most Gentoo systems currently rely on GRUB (currently included in Sys-boot/grub), a package that isIt is an early successor to the old grub. Also unconfigured, GRUB2 supports older system (“PC”) bios.

Update the bootloader settings before rebooting the system. For example, if you are using GRUB2, these steps maycan be done by running all of the following commands:

Using An EFI Stub Associated With Kernel Users

EFI stubs follow the procedure in the Installation section.

Use Systemd Boot


Select Your Charger

Once the Linux kernel is configured, all the required components are installed, and the configuration files are set up, it’s time to install the last important part of a Linux installation: the bootloader.

The first boot loader is responsible for starting the main Linux kernel at boot – without it, the system would not know what to do after pressing the drive button.

Document for me and my amd64 family how to set up GRUB2 or LILO BIOS for both designs and GRUB2 based or efibootmgr UEFI systems.

This section of the A-Manual makes a distinction between creating a bootloader package and installing the bootloader on a trusted system drive. Here the term “arrival” is used to prompt Portage to make the package available on the system. The term “patch” means that the loader duplicates files or physically changes the file.The relevant hard disk segments to activate the bootloader and prepare it to be displayed on the results of the next power cycle.

Default: GRUB2

By default, most Gentoo networks now rely on GRUB In (search for sys-boot/grub), which is the direct successor to GRUB Legacy. No, with additional GRUB2 configuration, the BIOS supports older systems (“PCs”). small With preconfiguration, GRUB2 can support more than half of the platform, or several others. For more information, see the new section of the GRUB2 Requirements article.


If you are using an older system BIOS that only supports MBR partition tables, no additional configuration for GRUB is required.

root#emerge --ask --verbose sys-boot/grub

How do I remove old kernels from Gentoo?

To remove old kernel sources, you can get used to the –depclean (short form -c) smart choice that appears to remove all old but unused niche vendor versions, for example. for sys-kernel/gentoo-sources. Make sure it doesn’t erase the current sources (see the How it Works article for kernel updates and how to upgrade).

Note to UEFI users: When the output of the about command is executed, the provided GRUB_PLATFORMS values ​​appear earlier than they appear. When using UEFI enabled systems, users should ensure that grub_platforms="efi-64" is enabled (default) for per. If this is not the case for many configurations, GRUB_PLATFORMS="efi-64" should be added to /etc/portage/make.conf prior to the GRUB2 file, so that all packages are included in the build.-in EFI # echo function:

root 'GRUB_PLATFORMS="efi-64"' >> /etc/portage/make.#emerge conf

root --ask sys-boot/grub

If grub2 somehow came about without including GRUB_PLATFORMS="efi-64", the scope (as can be seen above) goes to make.conf and then dependencies to for our own world. a set of packages can also be recalculated, which increases the chances of --update --newuse #emerge:

root --ask --update --newuse --verbose sys-boot/grub

< /dl>

The GRUB2 software is now bundled with the system, but not yet installed.


Then install the correct GRUB2 files into the /boot/grub/ directory using the grub-install command. Let's assume that the first disk (the one that the computer's system boots from) is /dev/sda along with the following commands:

  • If you are using bios #grub-install:

root /dev/sda

  • When using Important
    Make uefi:

Make sure the system partition is efi mounted before running grub-install. Is it possible for Grub-install to incorrectly load the grub file (grubx64 efi.efi) into the non-features directory, giving no indication that the directory was being misused.

root#grub-install --target=x86_64-efi --efi-directory=/boot

Your note
change --efi directory to include your EFI system partition's root directory. This is unavoidable if the /boot partition is not a FAT variant.< /p>

How do I change my Gentoo kernel?

Emerge step 1: makes all Solutions For The New Grub Gentoo Kernel kernel sources.
Correct 2: Step Install a symbolic link to the new kernel.
Step iii Move: to the new kernel folder.4
Step: Set up the file.
Checked step: and compile run this initramfs.
Step 6: Update the bootloader.

If grub_install returns an error, select Failed to prepare boot variable: read-only system image. remount the special efivars mount, but with read/write access to succeed:

root -o #mount remount,rw /sys/firmware/efi/ efivars

It appears that some motherboard manufacturers keep the directory location for /efi/boot/ of our .EFI file only in the system EFI (ESP) partition. The GRUB installer can start this process automatically with the --removable option. before following the requirements, make surethat the ESP is correctly installed. Assuming ESP can be mounted at /boot Suggested (as before), one can run the following:

This is the default directory defined by the UEFI specification, then be sure to copy the grubx64.efi file to keep the location of the "default" EFI file defined by the specification accurate.


Next, create the user-specific GRUB2 configuration, the configuration specified in /etc/default/grub, the /etc/grub.d file, and the scripts. In most cases no configuration was required from users as GRUB2 automatically detects which kernel to break into (the highest /boot/ available) at the time and which application is the root file. It is also possible to add /etc/default/grub options to the kernel using the grub_cmdline_linux variable.

The output command should indicate that all Linuxes will find the image, and they are required to boot on the particular system. If an initramfs is used or Genkernel is used to use the installed kernel, the correct representation of the initrd must also be found. If not, allow them access to /boot/ andVerify ownership with the ls command. Usually, if the files are indeed missing, fall back to kernel setup and boot instructions.

The os-prober utility can be used along with grub2 to detect other operating systems that map to drives. Windows 7, 8.1, 10, as well as other distributions, are recognizable as linux. On these dual-boot systems, it is recommended to re-run the package and run the sys-boot/os-prober grub-mkconfig command (as mentioned above). To see if you run into any problems, be sure to read GRUB2 in its entirety before contacting a specific Gentoo community for help.

Second Alternative: LILO


LILO, LInuxLOader, takes advantage of the true workhorses of Linux loaders. However, it lacks functionality in cases where LILO is also used over GRUB, as GRUB doesn't work on some systems, but lilo does. Of course, it's also posted because some people still know LILO and want to stick with it. In any case, Gentoo supports both bootloaders.



This configuration file contains sections that indicate which kernel to boot. Be sure to document that the kernels (with kernel version) are known and taken from the initramfs materials, as they will need to be referenced directly in this tutorial file.

If the root filesystem is definitely JFS, you add the line immediately append="ro" after each startup element because JFS needs to read its journal before mounting it for read/write.

Where is Gentoo kernel config?

configuration file by visiting /usr/src/linux/. configuration This is an increasingly secure method of upgrading to a completely new configuration file that contains all of the current configuration settings needed to support the electronics while still providing bug fixes and security areas. Includes all configuration settings in a given kernel.

boot=/dev/sda # Install LILO in MBR
Tooltip Allows the user to jump to a topic
Timeout=50 other number Wait 5 seconds (five) before starting the default partition
default=gentoo # After all timeouts, start the "gentoo" partition.
compact number This greatly reduces the loading point and reduces the content of the map; may not work on some systems

Label=gentoo # the name we suggest for the section
this read-only Begin # with a read-only trusted root. Do not change!

How do I change my Gentoo kernel?

Step 1: New Create kernel sources.
Step 2 Install correctly: a symbolic link to the new kernel.
Step 3: Go to your original main folder.
Step 4:
Setup Step 5: build the kernel and the actual initramfs.
Step 6: Update the bootloader.

Where is Gentoo kernel config?

The configuration file was found in the /usr/src/linux/ folder. configuration This is a new, fast and secure way to upgrade a configuration file, get all configuration settings you need through hardware support, and get bug fixes and security fixes. Includes all configuration settings while the kernel is running.