Klasse Forum... vielen Dank für die schnelle Unterstützung.
@Greg, die Aussagen auf deinem Link haben schonmal viele meiner vorherigen Versuche bestätigt 🙂
...was ist hier nur los bei mir...
ich habe die Eintragungen in /boot/grub/grub.cfg durchgeführt. Jetzt sagt er beim booten von Windows, dass er die Datei /EFI/Microsoft/Boot/bootmgfw.efi nicht finden kann 🙁.
Ich habe sda2 in /mnt eingehängt und erhalte folgendes:
[root@ant-17 /]# mount /dev/sda2 /mnt
[root@ant-17 /]# ls -l /mnt/EFI/Microsoft/Boot
total 4792
-rwxr-xr-x 1 root root 49152 Oct 21 02:21 BCD
-rwxr-xr-x 1 root root 65536 Oct 13 07:18 BCD.LOG
-rwxr-xr-x 1 root root 0 Oct 13 07:21 BCD.LOG1
-rwxr-xr-x 1 root root 0 Oct 13 07:21 BCD.LOG2
-rwxr-xr-x 1 root root 65536 Oct 13 10:00 BOOTSTAT.DAT
drwxr-xr-x 2 root root 3072 Oct 13 07:21 Fonts
drwxr-xr-x 3 root root 1024 Oct 13 07:21 Resources
drwxr-xr-x 2 root root 1024 Oct 13 07:21 bg-BG
-rwxr-xr-x 1 root root 4669 Mar 18 2017 boot.stl
-rwxr-xr-x 1 root root 1224600 Jul 11 02:30 bootmgfw.efi
-rwxr-xr-x 1 root root 1209760 Jul 11 02:30 bootmgr.efi
-rwxr-xr-x 1 root root 115616 Mar 18 2017 bootspaces.dll
drwxr-xr-x 2 root root 1024 Oct 13 07:21 cs-CZ
drwxr-xr-x 2 root root 1024 Oct 13 07:21 da-DK
drwxr-xr-x 2 root root 1024 Oct 13 07:21 de-DE
drwxr-xr-x 2 root root 1024 Oct 13 07:21 el-GR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 en-GB
drwxr-xr-x 2 root root 1024 Oct 13 07:21 en-US
drwxr-xr-x 2 root root 1024 Oct 13 07:21 es-ES
drwxr-xr-x 2 root root 1024 Oct 13 07:21 es-MX
drwxr-xr-x 2 root root 1024 Oct 13 07:21 et-EE
drwxr-xr-x 2 root root 1024 Oct 13 07:21 fi-FI
drwxr-xr-x 2 root root 1024 Oct 13 07:21 fr-CA
drwxr-xr-x 2 root root 1024 Oct 13 07:21 fr-FR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 hr-HR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 hu-HU
drwxr-xr-x 2 root root 1024 Oct 13 07:21 it-IT
drwxr-xr-x 2 root root 1024 Oct 13 07:21 ja-JP
-rwxr-xr-x 1 root root 31648 Mar 18 2017 kd_02_10df.dll
-rwxr-xr-x 1 root root 329632 Mar 18 2017 kd_02_10ec.dll
-rwxr-xr-x 1 root root 27032 Mar 18 2017 kd_02_1137.dll
-rwxr-xr-x 1 root root 216480 Mar 18 2017 kd_02_14e4.dll
-rwxr-xr-x 1 root root 44440 Mar 18 2017 kd_02_15b3.dll
-rwxr-xr-x 1 root root 42904 Mar 18 2017 kd_02_1969.dll
-rwxr-xr-x 1 root root 31648 Mar 18 2017 kd_02_19a2.dll
-rwxr-xr-x 1 root root 248736 Mar 18 2017 kd_02_8086.dll
-rwxr-xr-x 1 root root 18848 Mar 18 2017 kd_07_1415.dll
-rwxr-xr-x 1 root root 39840 Mar 18 2017 kd_0C_8086.dll
-rwxr-xr-x 1 root root 24480 Mar 18 2017 kdstub.dll
drwxr-xr-x 2 root root 1024 Oct 13 07:21 ko-KR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 lt-LT
drwxr-xr-x 2 root root 1024 Oct 13 07:21 lv-LV
-rwxr-xr-x 1 root root 1056672 Jul 11 02:30 memtest.efi
drwxr-xr-x 2 root root 1024 Oct 13 07:21 nb-NO
drwxr-xr-x 2 root root 1024 Oct 13 07:21 nl-NL
drwxr-xr-x 2 root root 1024 Oct 13 07:21 pl-PL
drwxr-xr-x 2 root root 1024 Oct 13 07:21 pt-BR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 pt-PT
drwxr-xr-x 2 root root 1024 Oct 13 07:21 qps-ploc
drwxr-xr-x 2 root root 1024 Oct 13 07:21 ro-RO
drwxr-xr-x 2 root root 1024 Oct 13 07:21 ru-RU
drwxr-xr-x 2 root root 1024 Oct 13 07:21 sk-SK
drwxr-xr-x 2 root root 1024 Oct 13 07:21 sl-SI
drwxr-xr-x 2 root root 1024 Oct 13 07:21 sr-Latn-CS
drwxr-xr-x 2 root root 1024 Oct 13 07:21 sr-Latn-RS
drwxr-xr-x 2 root root 1024 Oct 13 07:21 sv-SE
drwxr-xr-x 2 root root 1024 Oct 13 07:21 tr-TR
drwxr-xr-x 2 root root 1024 Oct 13 07:21 uk-UA
-rwxr-xr-x 1 root root 4662 Mar 18 2017 updaterevokesipolicy.p7b
-rwxr-xr-x 1 root root 6534 Jul 11 02:30 winsipolicy.p7b
drwxr-xr-x 2 root root 1024 Oct 13 07:21 zh-CN
drwxr-xr-x 2 root root 1024 Oct 13 07:21 zh-HK
drwxr-xr-x 2 root root 1024 Oct 13 07:21 zh-TW
...die Datei ist also vorhanden...
Meine grub.cfg, vielleicht hilft das weiter
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod btrfs
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2 ae0a9956-9a46-4b79-a8ab-5b746c3d084a
else
search --no-floppy --fs-uuid --set=root ae0a9956-9a46-4b79-a8ab-5b746c3d084a
fi
font="/@/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=de_DE
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ae0a9956-9a46-4b79-a8ab-5b746c3d084a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 196E-5962
else
search --no-floppy --fs-uuid --set=root 196E-5962
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a rw rootflags=subvol=@ quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /intel-ucode.img /initramfs-linux.img
}
menuentry "Windows" {
set root='hd0,2'
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
submenu 'Erweiterte Optionen für Arch Linux' $menuentry_id_option 'gnulinux-advanced-ae0a9956-9a46-4b79-a8ab-5b746c3d084a' {
menuentry 'Arch Linux, mit Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-ae0a9956-9a46-4b79-a8ab-5b746c3d084a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 196E-5962
else
search --no-floppy --fs-uuid --set=root 196E-5962
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a rw rootflags=subvol=@ quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /intel-ucode.img /initramfs-linux.img
}
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-ae0a9956-9a46-4b79-a8ab-5b746c3d084a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 196E-5962
else
search --no-floppy --fs-uuid --set=root 196E-5962
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a rw rootflags=subvol=@ quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /intel-ucode.img /initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
...und mein /boot/grub Verzeichnis
[root@ant-17 /]# cd /boot/grub
[root@ant-17 grub]# ls -l
total 52
drwxr-xr-x 2 root root 4096 Oct 21 04:41 fonts
-rwxr-xr-x 1 root root 5238 Oct 22 02:16 grub.cfg
-rwxr-xr-x 1 root root 5036 Oct 21 04:37 grub.cfg.example
-rwxr-xr-x 1 root root 1024 Oct 21 04:41 grubenv
drwxr-xr-x 2 root root 4096 Oct 21 04:47 locale
drwxr-xr-x 3 root root 4096 Oct 21 04:41 themes
drwxr-xr-x 2 root root 20480 Oct 21 04:47 x86_64-efi
...ich habe dann die grub.cfg geändert. Angelehnt an dem was Greg in seiner grub.cfg stehen hat, sieht meine nun wie folgt aus
insmod part_gpt
insmod ext2
insmod fat
insmod all_video
set default=0
set timeout=3
set color_normal=cyan/black
set color_highlight=white/black
gfxpayload=keep
menuentry 'Arch Linux' {
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 196E-5962
else
search --no-floppy --fs-uuid --set=root 196E-5962
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a rw rootflags=subvol=@ quiet
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux Fallback' {
set root='hd1,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 196E-5962
else
search --no-floppy --fs-uuid --set=root 196E-5962
fi
echo 'Linux linux wird geladen ^` '
linux /vmlinuz-linux root=UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a rw rootflags=subvol=@ quiet
echo 'Initiale Ramdisk wird geladen ^` '
initrd /initramfs-linux-fallback.img
}
menuentry "Windows" {
set root="hd0,2"
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
jetzt sagt er wieder beim booten
Fehler: laufwerk >hd0,2< wurde nicht gefunden..
Beliebige Tast drücken, um fortzusetzen...
@stefanhusmann, in /btrfs liegen die ganzen subvolumes, die ich dort nochmal anzeigen lasse. Beim Booten wird die subvolume /@ auf root gemountet. Ich bin zwar nicht ganz neu in der Linux Welt, da ich meinen Server auf Linux (hauptsächlich Debian und Ubuntu als VMs) aufgebaut habe, bin aber absolut neu in ArchLinux und Btrfs. Ich gehe dort nach dem Schema des Youtubers Unicks.eu (ich hoffe das ist kein Problem den hier zu nennen) vor. Wer den Aufbau sieht, erkennt womöglich auch gleich die Struktur 😉. Er beschreibt in seinen Videos auch einen Dualboot, allerdings immer nur auf der gleichen Festplatte. Dabei ist es anscheinend kein Problem mit systemd-boot alle Partitionen zu integrieren. Mein Aufbau sieht jedenfalls demnach wie folgt aus:
[root@ant-17 /]# ls -l /btrfs
total 0
drwxr-xr-x 1 root root 166 Oct 21 04:34 @
drwxr-xr-x 1 root root 0 Oct 15 06:30 @home
drwxr-xr-x 1 root root 10746 Oct 21 04:28 @pkg
drwxr-xr-x 1 root root 0 Oct 15 06:30 @snapshots
[root@ant-17 /]# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdb2 UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a
LABEL=ROOT / btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=257,subvol=/@,subvol=@ 0 0
# /dev/sdb2 UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a
LABEL=ROOT /home btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=258,subvol=/@home,subvol=@home 0 0
# /dev/sdb2 UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a
LABEL=ROOT /.snapshots btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=260,subvol=/@snapshots,subvol=@snapshots 0 0
# /dev/sdb2 UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a
LABEL=ROOT /var/cache/pacman/pkg btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=259,subvol=/@pkg,subvol=@pkg 0 0
# /dev/sdb1 UUID=3253-99F7
LABEL=EFIBOOT /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro0 2
# /dev/sdb2 UUID=ae0a9956-9a46-4b79-a8ab-5b746c3d084a
LABEL=ROOT /btrfs btrfs rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/ 0 0
# /dev/sdb3 UUID=4cd4c55b-84a0-44d4-8db9-93ad3b7c5383
LABEL=SWAP none swap defaults 0 0
[root@ant-17 /]# ls -l /btrfs/@
total 16
drwxr-xr-x 1 root root 20 Oct 15 06:48 backups
lrwxrwxrwx 1 root root 7 Mar 26 2017 bin -> usr/bin
drwxr-xr-x 1 root root 0 Oct 20 06:56 boot
drwxr-xr-x 1 root root 0 Oct 15 06:32 btrfs
drwxr-xr-x 1 root root 0 Oct 15 06:37 dev
drwxr-xr-x 1 root root 1614 Oct 21 05:25 etc
drwxr-xr-x 1 root root 0 Oct 15 06:31 home
lrwxrwxrwx 1 root root 7 Mar 26 2017 lib -> usr/lib
lrwxrwxrwx 1 root root 7 Mar 26 2017 lib64 -> usr/lib
drwxr-xr-x 1 root root 0 Mar 26 2017 mnt
drwxr-xr-x 1 root root 0 Mar 26 2017 opt
dr-xr-xr-x 1 root root 0 Oct 15 06:37 proc
drwxr-x--- 1 root root 38 Oct 15 07:05 root
drwxr-xr-x 1 root root 0 Oct 15 06:37 run
lrwxrwxrwx 1 root root 7 Mar 26 2017 sbin -> usr/bin
drwxr-xr-x 1 root root 14 Oct 15 06:38 srv
dr-xr-xr-x 1 root root 0 Oct 15 06:37 sys
drwxrwxrwt 1 root root 0 Oct 15 06:37 tmp
drwxr-xr-x 1 root root 70 Oct 21 05:01 usr
drwxr-xr-x 1 root root 116 Oct 21 05:25 var
[root@ant-17 /]# ls -l /
total 36
drwxr-xr-x 1 root root 20 Oct 15 06:48 backups
lrwxrwxrwx 1 root root 7 Mar 26 2017 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Jan 1 1970 boot
drwxr-xr-x 1 root root 40 Oct 15 06:27 btrfs
drwxr-xr-x 18 root root 3540 Oct 22 01:45 dev
drwxr-xr-x 1 root root 1614 Oct 21 05:25 etc
drwxr-xr-x 1 root root 0 Oct 15 06:30 home
lrwxrwxrwx 1 root root 7 Mar 26 2017 lib -> usr/lib
lrwxrwxrwx 1 root root 7 Mar 26 2017 lib64 -> usr/lib
drwxr-xr-x 1 root root 0 Mar 26 2017 mnt
drwxr-xr-x 1 root root 0 Mar 26 2017 opt
dr-xr-xr-x 268 root root 0 Oct 22 01:44 proc
drwxr-x--- 1 root root 38 Oct 15 07:05 root
drwxr-xr-x 3 root root 60 Oct 22 01:51 run
lrwxrwxrwx 1 root root 7 Mar 26 2017 sbin -> usr/bin
drwxr-xr-x 1 root root 14 Oct 15 06:38 srv
dr-xr-xr-x 13 root root 0 Oct 22 01:44 sys
drwxrwxrwt 2 root root 40 Oct 22 01:51 tmp
drwxr-xr-x 1 root root 70 Oct 21 05:01 usr
drwxr-xr-x 1 root root 116 Oct 21 05:25 var