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

From Funtoo
Jump to navigation Jump to search
(Created page with "Para sistemas x86-64 bits:")
(Created page with "Para sistemas x86-32 bits:")
Line 63: Line 63:
</console>
</console>


For x86-32bit systems:
Para sistemas x86-32 bits:


<console>
<console>

Revision as of 12:51, 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

Ao usar a inicialização do BIOS/MBR no "estilo antigo", execute os seguintes comandos para instalar o GRUB no seu MBR e, em seguida, gere o arquivo de configuração /boot/grub/grub.cfg que o GRUB usará para inicializar seu sistema:

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

Estilo Novo (UEFI) Entrada no Boot

Ao usar a inicialização do UEFI/GPT no "estilo novo", execute os seguintes comandos, dependendo se seu sistema é 32 ou 64 bits. Esse comando adiciona o GRUB como uma entrada na BIOS UEFI.

Para sistemas x86-64 bits:

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

Para sistemas x86-32 bits:

(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.