Difference between revisions of "Install/Bootloader/pt-br"

From Funtoo
Jump to navigation Jump to search
(Created page with "Se você está inicializando um kernel personalizado, por favor leia o manual de <code>boot.conf</code> para informações sobre as várias opções disponíveis para você.")
(Created page with "==== Estilo Antigo (BIOS) MBR ====")
Line 43: Line 43:
Se você está inicializando um kernel personalizado, por favor leia o manual de <code>boot.conf</code> para informações sobre as várias opções disponíveis para você.
Se você está inicializando um kernel personalizado, por favor leia o manual de <code>boot.conf</code> para informações sobre as várias opções disponíveis para você.


==== Old School (BIOS) MBR ====
==== Estilo Antigo (BIOS) MBR ====


When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the {{c|/boot/grub/grub.cfg}} configuration file that GRUB will use for booting:
When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the {{c|/boot/grub/grub.cfg}} configuration file that GRUB will use for booting:

Revision as of 12:48, September 28, 2018

Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Guia de Instalação: Gerenciador de Arranque

Install Guide, Chapter 14 < Prev Next >

Essas instruções de instalação mostram como usar o GRUB para inicializar usando o BIOS/MBR (herdado) ou o UEFI/GPT com boot-update a partir da versão 1.7.2.

Primeiro, instale boot-update. Isso também causa a instalação de grub-2 e efibootmgr, pois esses pacotes são dependências:

(chroot) # emerge boot-update

Então, edite /etc/boot.conf usando nano e especifique "Funtoo Linux genkernel" como a configuração padrão no topo do arquivo, substituindo "Funtoo Linux". Além disso, se você não estiver usando o memtest86+, remova essa entrada no boot.conf para evitar erros.

/etc/boot.conf deverá se parecer com isso:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux genkernel" 
	timeout 3 
}

"Funtoo Linux" {
	kernel bzImage[-v]
}

"Funtoo Linux genkernel" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto 
} 

"Funtoo Linux better-initramfs" {
	kernel vmlinuz[-v]
	initrd /initramfs.cpio.gz
}

Se você está inicializando um kernel personalizado, por favor leia o manual de boot.conf para informações sobre as várias opções disponíveis para você.

Estilo Antigo (BIOS) MBR

When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the /boot/grub/grub.cfg configuration file that GRUB will use for booting:

(chroot) # grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # boot-update

New School (UEFI) Boot Entry

If you're using "new school" UEFI booting, run of the following sets of commands, depending on whether you are installing a 64-bit or 32-bit system. This will add GRUB as a UEFI boot entry.

For x86-64bit systems:

(chroot) # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # boot-update

For x86-32bit systems:

(chroot) # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # boot-update

First Boot, and in the future...

OK -- you are almost ready to boot!

You only need to run grub-install when you first install Funtoo Linux, but you need to re-run boot-update every time you modify your /etc/boot.conf file or add new kernels to your system. This will regenerate /boot/grub/grub.cfg so that you will have new kernels available in your GRUB boot menu, the next time you reboot.