Brathorun schrieb...Ich würde auch Manuell die Datei editieren. Nach welchem Schema funktioniert das?...
Hier ist ein "Muster"
# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
#
insmod ext2
#insmod reiserfs
insmod part_gpt
insmod part_msdos
insmod ntfs
set timeout=1
set default=0
set fallback=5
#Mögliche Farben sind:
#white, blue, magenta, cyan, light-gray, yellow, red, light-magenta, dark-gray,
#green, light-blue, light-red, black, light-cyan, light-green, brown
set color_normal=cyan/black
set color_highlight=white/black
gfxpayload=1680x1050x32
#set gfxmode=1680x1050x32
menuentry "Arch Linux" {
#set root=(hd1,3)
search --label --no-floppy --set=root p_arch3
linux /boot/vmlinuz-linux root=/dev/disk/by-label/p_arch3 init=/usr/lib/systemd/systemd rw quiet
initrd /boot/initramfs-linux.img
#initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
menuentry "Arch Linux fallback" {
#set root=(hd1,3)
search --label --no-floppy --set=root p_arch3
linux /boot/vmlinuz-linux root=/dev/disk/by-label/p_arch3 init=/usr/lib/systemd/systemd rw quiet
initrd /boot/initramfs-linux-fallback.img
#initrd boot/intel-ucode.img /boot/initramfs-linux-fallback.img
}
menuentry "memtest" {
set root=(hd0,3)
linux16 ($root)/boot/memtest86+/memtest.bin
}
Bei mir sind die Arch-Linux Partitionen mit Labels versehen.
Du könntest aber auch per UEFI booten und systemd-loader benutzen.
Dazu brauchst du eine separate Bootpartition mit dem Type ef00
bootctl install
Datei anlegen:
nano /boot/loader/loader.conf Hinweis: diese Datei wird nur benutzt zum Laden des default Linux.
timeout3
default uefi_arch
Datei anlegen:
nano /boot/loader/entries/uefi_arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=p_arch rw
Für fallback anlegen:
/boot/loader/entries/uefi_arch_fallback.conf
title Arch Linux fallback
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options root=LABEL=p_arch rw