4. Bootloader: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(→‎Systemd-boot:: Zeilenumbruch)
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
[[spicker | Arch Linux Installations Spickzettel]]<br>
[[spicker | Arch Linux Installations Spickzettel]]<br>


==Grub für BIOS und UEFI==
==Grub:== 
Grub eignet sich fuer BIOS- und fuer UEFI-Rechner.
 
===a) nicht verschluesselt===
 
<u>Grub installieren:</u><br>
<u>Grub installieren:</u><br>
<code style=font-size:12px>pacman -S grub</code><br>
<code style=font-size:12px>pacman -S grub</code><br>
Zeile 7: Zeile 11:
<code style=font-size:12px>grub-mkconfig -o /boot/grub/grub.cfg</code><br><br>
<code style=font-size:12px>grub-mkconfig -o /boot/grub/grub.cfg</code><br><br>


<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<u>Chrootumgebung verlassen:</u><br>
<code style=font-size:12px>exit</code><br>
<u>BIOS-Rechner Partition loesen:</u><br>
<code style=font-size:12px>umount /mnt</code><br>
<u>UEFI-Rechner Partitionen loesen:</u><br>
<code style=font-size:12px>umount /mnt/{boot}</code><br><br>
 
<code style=font-size:12px>poweroff</code><br>
<u>ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen  </u><br><br>
 
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
 
===b) crypted-ROOT=== 
<u>grub installieren falls noch nicht geschehen:</u><br>
<code style=font-size:12px>pacman -S grub</code><br><br>
 
<u>grub konfigurieren:</u><br>
<code style=font-size:12px>nano /etc/default/grub</code><br>
<u>Folgende Zeilen anpassen bzw. auskommentieren</u><br>
<code style=font-size:12px>GRUB_CMDLINE_LINUX="cryptdevice=/dev/'''xY''':root"</code><br>
<code style=font-size:12px>GRUB_ENABLE_CRYPTODISK=y</code><br>
<u>Initramfs suchen und grub.cfg schreiben:</u><br>
<code style=font-size:12px>grub-install /dev/'''x''' --recheck</code><br>
<code style=font-size:12px>grub-mkconfig -o /boot/grub/grub.cfg</code><br><br>
 
<u>Chrootumgebung verlassen:</u><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>umount /mnt</code><br><br>
<u>BIOS-Rechner Partition loesen:</u><br>
<code style=font-size:12px>umount /mnt</code><br>
<u>UEFI-Rechner Partitionen loesen:</u><br>
<code style=font-size:12px>umount /mnt/{boot}</code><br><br>


<code style=font-size:12px>poweroff</code><br>
<code style=font-size:12px>poweroff</code><br>
Zeile 16: Zeile 48:
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]


==Syslinux fuer BIOS-Rechner==
==Syslinux:== 
 
Syslinux eignet sich ausschließlich fuer unverschluesselte BIOS-Rechner.


<u>Syslinux installieren:</u><br>
<u>Syslinux installieren:</u><br>
Zeile 34: Zeile 68:
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]


==Grub fuer verschlüsselte BIOS-Rechner==


<u>grub installieren falls noch nicht geschehen:</u><br>
==Systemd-boot:== 
<code style=font-size:12px>pacman -S grub</code><br><br>
 
Systemd-boot eignet sich fuer UEFI-Rechner
 
===a) nicht verschluesselt=== 
 
<u>Systemd-boot installieren:</u><br>
<code style=font-size:12px>bootctl install</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px>title Arch Linux</code><br>
<code style=font-size:12px>linux /vmlinuz-linux</code><br>
<code style=font-size:12px>initrd /initramfs-linux.img</code><br>
<code style=font-size:12px>options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch-fallback.conf</code><br>
<u>Wie oben mit Unterschied in der 'initrd' Zeile:</u><br>
<code style=font-size:12px>initrd  /initramfs-linux-fallback.img</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/loader.conf</code><br>
<u>Und entsprechend anpassen:</u><br>
<code style=font-size:12px>default arch-uefi.conf</code><br>
<code style=font-size:12px>timeout 4</code><br><br>
 
<u>Systemd-boot updaten</u><br>
<code style=font-size:12px>bootctl update</code><br><br>
 
<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>umount /mnt/{boot}</code><br><br>
 
<code style=font-size:12px>poweroff</code><br>
<u>ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen  </u><br><br>
 
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
 
===b) EFI, crypted-ROOT=== 
<u>Systemd-boot vorbereiten:</u><br>
<code style=font-size:12px>bootctl install</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px>title Arch Linux</code><br>
<code style=font-size:12px>linux /vmlinuz-linux</code><br>
<code style=font-size:12px>initrd /initramfs-linux.img</code><br>
<code style=font-size:12px>options cryptdevice=/dev/'''x'''2:root root=/dev/mapper/root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch-fallback.conf</code><br>
<u>Wie oben mit Unterschied in der 'initrd' Zeile:</u><br>
<code style=font-size:12px>initrd  /initramfs-linux-fallback.img</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/loader.conf</code><br>
<u>Und entsprechend anpassen:</u><br>
<code style=font-size:12px>default arch-uefi.conf</code><br>
<code style=font-size:12px>timeout 4</code><br><br>
 
<u>Systemd-boot updaten</u><br>
<code style=font-size:12px>bootctl update</code><br><br>
 
<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>umount /mnt/{boot}</code><br><br>
 
<code style=font-size:12px>poweroff</code><br>
<u>ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen  </u><br><br>
 
Weiter siehe Kapitel [[5._Grafische_Benutzeroberflaeche|5. Grafische Benutzeroberflaeche ]]
 
===b) EFI, crypted-LVM=== 
<u>Systemd-boot vorbereiten:</u><br>
<code style=font-size:12px>bootctl install</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch.conf</code><br>
<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px>title Arch Linux</code><br>
<code style=font-size:12px>linux /vmlinuz-linux</code><br>
<code style=font-size:12px>initrd /initramfs-linux.img</code><br>
<code style=font-size:12px>options  cryptdevice=/dev/'''x'''2:main root=/dev/mapper/main-root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/entries/arch-fallback.conf</code><br>
<u>Wie oben mit Unterschied in der 'initrd' Zeile:</u><br>
<code style=font-size:12px>initrd  /initramfs-linux-fallback.img</code><br><br>
 
<code style=font-size:12px>nano /boot/loader/loader.conf</code><br>
<u>Und entsprechend anpassen:</u><br>
<code style=font-size:12px>default arch-uefi.conf</code><br>
<code style=font-size:12px>timeout 4</code><br><br>


<u>grub konfigurieren:</u><br>
<u>Systemd-boot updaten</u><br>
<code style=font-size:12px>nano /etc/default/grub</code><br>
<code style=font-size:12px>bootctl update</code><br><br>
<u>Folgende Zeilen anpassen bzw. auskommentieren</u><br>
<code style=font-size:12px>GRUB_CMDLINE_LINUX="cryptdevice=/dev/'''x'''1:root"</code><br>
<code style=font-size:12px>GRUB_ENABLE_CRYPTODISK=y</code><br>
<u>Initramfs suchen und grub.cfg schreiben:</u><br>
<code style=font-size:12px>grub-install /dev/'''x''' --recheck</code><br>
<code style=font-size:12px>grub-mkconfig -o /boot/grub/grub.cfg</code><br><br>


<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>exit</code><br>
<code style=font-size:12px>umount /mnt</code><br><br>
<code style=font-size:12px>umount /mnt/{boot}</code><br><br>


<code style=font-size:12px>poweroff</code><br>
<code style=font-size:12px>poweroff</code><br>

Aktuelle Version vom 26. April 2024, 15:59 Uhr

Arch Linux Installations Spickzettel

Grub:

Grub eignet sich fuer BIOS- und fuer UEFI-Rechner.

a) nicht verschluesselt

Grub installieren:
pacman -S grub
grub-install /dev/x
grub-mkconfig -o /boot/grub/grub.cfg

Chrootumgebung verlassen:
exit
BIOS-Rechner Partition loesen:
umount /mnt
UEFI-Rechner Partitionen loesen:
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) crypted-ROOT

grub installieren falls noch nicht geschehen:
pacman -S grub

grub konfigurieren:
nano /etc/default/grub
Folgende Zeilen anpassen bzw. auskommentieren
GRUB_CMDLINE_LINUX="cryptdevice=/dev/xY:root"
GRUB_ENABLE_CRYPTODISK=y
Initramfs suchen und grub.cfg schreiben:
grub-install /dev/x --recheck
grub-mkconfig -o /boot/grub/grub.cfg

Chrootumgebung verlassen:
exit
BIOS-Rechner Partition loesen:
umount /mnt
UEFI-Rechner Partitionen loesen:
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

Syslinux:

Syslinux eignet sich ausschließlich fuer unverschluesselte BIOS-Rechner.

Syslinux installieren:
pacman -S syslinux
syslinux-install_update -i -a -m
nano /boot/syslinux/syslinux.cfg
Und beide Zeilen mit "APPEND" wie folgt anpassen
APPEND root=LABEL=ARCH rw

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche


Systemd-boot:

Systemd-boot eignet sich fuer UEFI-Rechner

a) nicht verschluesselt

Systemd-boot installieren:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=ROOT rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten
bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) EFI, crypted-ROOT

Systemd-boot vorbereiten:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/x2:root root=/dev/mapper/root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten
bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche

b) EFI, crypted-LVM

Systemd-boot vorbereiten:
bootctl install

nano /boot/loader/entries/arch.conf
Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=/dev/x2:main root=/dev/mapper/main-root rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-fallback.conf
Wie oben mit Unterschied in der 'initrd' Zeile:
initrd /initramfs-linux-fallback.img

nano /boot/loader/loader.conf
Und entsprechend anpassen:
default arch-uefi.conf
timeout 4

Systemd-boot updaten
bootctl update

Chrootumgebung verlassen und Partitionen loesen:
exit
umount /mnt/{boot}

poweroff
ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen

Weiter siehe Kapitel 5. Grafische Benutzeroberflaeche