Difference between revisions of "Install/de/BootLoader"

From Funtoo
< Install‎ | de
Jump to navigation Jump to search
(Created page with "<noinclude> {{InstallPart|boot loader configuration}} </noinclude> === Installing a Bootloader === These install instructions show you how to use GRUB to boot using BIOS (old...")
 
Line 2: Line 2:
{{InstallPart|boot loader configuration}}
{{InstallPart|boot loader configuration}}
</noinclude>
</noinclude>
=== Installing a Bootloader ===
=== Installation des Bootloaders ===


These install instructions show you how to use GRUB to boot using BIOS (old-school) or UEFI (new-school). As of boot-update-1.7.2, now in Portage, the steps are very similar.
Diese Installationsanweisungen zeigen die Nutzung von GRUB um via BIOS(old-school) oder UEFI (new-school) zu booten.
Da Portage nun boot-update-1.7.2 anbietet sind die Schritte sehr ähnlich.


First, emerge <code>boot-update</code>. This will also cause <code>grub-2</code> and {{c|efibootmgr}} to be merged, since they are dependencies:
Erstens, installiere <code>boot-update</code>. Folglich werden auch die Abhängigkeiten <code>grub-2</code> und {{c|efibootmgr}} installiert:


<console>
<console>
Line 12: Line 13:
</console>
</console>


Then, edit <code>/etc/boot.conf</code> using {{c|nano}} and specify "<code>Funtoo Linux genkernel</code>" as the <code>default</code> setting at the top of the file, replacing <code>"Funtoo Linux"</code>.  
Dann, editiere <code>/etc/boot.conf</code> mit {{c|nano}} und ersetze <code>"Funtoo Linux"</code> durch  <code>"Funtoo Linux genkernel"</code> und spezifiziere den Kernel als  <code>default</code> (voreingestellt) am Anfang der Datei.


<code>/etc/boot.conf</code> should now look like this:
<code>/etc/boot.conf</code> sollte wie folgt aussehen:


<pre>
<pre>
Line 39: Line 40:
</pre>
</pre>


If you are booting a custom or non-default kernel, please read <code>man boot.conf</code> for information on the various options available to you.
Falls Sie einen eigenen Kernel booten wollen, informieren Sie sich mit  <code>"man boot.conf"</code> über die verschiedenen vorhandenen Optionen.


==== Old School (BIOS) MBR ====
==== (BIOS Bootvariante) 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:


Für die ältere Herangehensweise, dem BIOS Bootvorgang, führen Sie die folgende Befehle aus, um GRUB ins MBR zu installieren und um die Konfigurationsdatei {{c|/boot/grub/grub.cfg}}  , welche von GRUB zum Booten genutzt wird, zu generieren.
<console>
<console>
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
Line 50: Line 50:
</console>
</console>


==== New School (UEFI) Boot Entry ====
==== (UEFI Bootvariante) ====


If you're using "new school" UEFI booting, one 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.
Für die neuere UEFI Bootvariante, führen Sie die folgende Befehle, in Abhängigkeit ob Sie ein 64-bit oder ein 32-bit System nutzen.
Dies wird GRUB als UEFI Booteintrag hinzufügen.


For x86-64bit systems:
Für x86-64bit Systeme:


<console>
<console>
Line 61: Line 62:
</console>
</console>


For x86-32bit systems:
Für x86-32bit Systeme:


<console>
<console>
Line 68: Line 69:
</console>
</console>


==== First Boot, and in the future... ====
==== Erster Bootvorgang und Zukünftige. ====


OK -- you are ready to boot!  
OK -- Sie sind fertig zum Booten!  


You only need to run <code>grub-install</code> when you first install Funtoo Linux, but you need to re-run <code>boot-update</code> every time you modify your <code>/etc/boot.conf</code> file or add new kernels to your system. This will regenerate {{c|/boot/grub/grub.cfg}} so that you will have new kernels available in your GRUB boot menu, the next time you reboot.
Sie müssen <code>grub-install</code> nur ausführen, wenn Sie Funtoo installieren. Sie müssen nur darauf achten <code>boot-update</code> auszuführen, wenn Sie die Konfigurationsdatei <code>/etc/boot.conf</code> verändern oder einen neuen Kernel hinzufügen wollen. Der Befehl <code>boot-update</code> wird die komplexe {{c|/boot/grub/grub.cfg}} regenerieren, damit die neuen Kernel beim nächsten Booten im GRUB-Menü vorhanden sind.

Revision as of 12:09, January 27, 2015


   Note

This is a template that is used as part of the Installation instructions which covers: boot loader configuration. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Installation des Bootloaders

Diese Installationsanweisungen zeigen die Nutzung von GRUB um via BIOS(old-school) oder UEFI (new-school) zu booten. Da Portage nun boot-update-1.7.2 anbietet sind die Schritte sehr ähnlich.

Erstens, installiere boot-update. Folglich werden auch die Abhängigkeiten grub-2 und efibootmgr installiert:

(chroot) # emerge boot-update

Dann, editiere /etc/boot.conf mit nano und ersetze "Funtoo Linux" durch "Funtoo Linux genkernel" und spezifiziere den Kernel als default (voreingestellt) am Anfang der Datei.

/etc/boot.conf sollte wie folgt aussehen:

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
}

Falls Sie einen eigenen Kernel booten wollen, informieren Sie sich mit "man boot.conf" über die verschiedenen vorhandenen Optionen.

(BIOS Bootvariante) MBR

Für die ältere Herangehensweise, dem BIOS Bootvorgang, führen Sie die folgende Befehle aus, um GRUB ins MBR zu installieren und um die Konfigurationsdatei /boot/grub/grub.cfg , welche von GRUB zum Booten genutzt wird, zu generieren.

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

(UEFI Bootvariante)

Für die neuere UEFI Bootvariante, führen Sie die folgende Befehle, in Abhängigkeit ob Sie ein 64-bit oder ein 32-bit System nutzen. Dies wird GRUB als UEFI Booteintrag hinzufügen.

Für x86-64bit Systeme:

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

Für x86-32bit Systeme:

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

Erster Bootvorgang und Zukünftige.

OK -- Sie sind fertig zum Booten!

Sie müssen grub-install nur ausführen, wenn Sie Funtoo installieren. Sie müssen nur darauf achten boot-update auszuführen, wenn Sie die Konfigurationsdatei /etc/boot.conf verändern oder einen neuen Kernel hinzufügen wollen. Der Befehl boot-update wird die komplexe /boot/grub/grub.cfg regenerieren, damit die neuen Kernel beim nächsten Booten im GRUB-Menü vorhanden sind.