Hallo Lidux,
Du schreibst:
Im EFI kannst du kontrollieren wie die Einstellungen zu EFI und Legacy only sind. Da würde ich auch gleich die EFI Einträge zu Network ip4 & ip6 vielleicht noch nach hinten verschieben und USB /CD nach vorne.
... und ich bin mir nicht sicher, ob ich Dich richtig verstehe. Also, ich gehe in den Bootmanager der UEFI Firmware, richtig? Dort finde ich aber nur wie oben beschrieben folgende vier Auswahlmöglichkeiten: ubuntu, Windows, EFI Networf ip6 & ip4. Ein CD-Laufwerk hat der Laptop nicht, und einen Eintrag für USB finde ich nur, wenn beim Einschalten ein USB-Startmedium eingesteckt ist. Dann allerdings befindet sich der Eintrag auch bereits an dritter Stelle, also vor den beiden Network-Einträgen. Ist damit alles okay? Was genau meinst mit den "Einstellungen zu Legacy only"? Ich finde nur Einstellmöglichkeiten für Secure Boot, die aktuell auf "disabled" stehen. Sorry für meine Unwissenheit. 🙄
Hast du den Befehl zur Auflistung der Position des Grub2 schon gefunden ?
Da habe ich mal folgende Anleitung durchforstet ...
https://wiki.ubuntuusers.de/GRUB-Umgebung_analysieren/
... und ein paar dieser Befehle ausgeführt:
dpkg --list | grep grub
ii grub-common 2.04-1ubuntu26 amd64 GRand Unified Bootloader (common files)
ii grub-efi-amd64-bin 2.04-1ubuntu26 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
ii grub-efi-amd64-signed 1.142.1+2.04-1ubuntu26 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
ii grub-gfxpayload-lists 0.7 amd64 GRUB gfxpayload blacklist
ii grub-pc 2.04-1ubuntu26 amd64 GRand Unified Bootloader, version 2 (PC/BIOS version)
ii grub-pc-bin 2.04-1ubuntu26 amd64 GRand Unified Bootloader, version 2 (PC/BIOS modules)
ii grub2-common 2.04-1ubuntu26 amd64 GRand Unified Bootloader (common files for version 2)
Demnach ist bei mir also tatsächlich GRUB2 installiert.
dpkg --list | grep os-prober
ii os-prober 1.74ubuntu2 amd64 utility to detect other OSes on a set of drives
Hätte mich auch gewundert, wenn das verschlüsselte Win10 entdeckt worden wäre.
Und hier kommt die Ausgabe der aktuellen GRUB-Konfiguration:
cat /boot/grub/grub.cfg
#
# 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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
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_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1fa59735-f890-465a-a6fa-9c3530f1de77' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
fi
linux /boot/vmlinuz-5.4.0-40-generic root=UUID=1fa59735-f890-465a-a6fa-9c3530f1de77 ro quiet cryptdevice=UUID=9691304c-2794-476a-891d-09ee8ce46aad:luks-9691304c-2794-476a-891d-09ee8ce46aad root=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad resume=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad splash $vt_handoff
initrd /boot/initrd.img-5.4.0-40-generic
}
submenu 'Erweiterte Optionen für Ubuntu' $menuentry_id_option 'gnulinux-advanced-1fa59735-f890-465a-a6fa-9c3530f1de77' {
menuentry 'Ubuntu, mit Linux 5.4.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-40-generic-advanced-1fa59735-f890-465a-a6fa-9c3530f1de77' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
fi
echo 'Linux 5.4.0-40-generic wird geladen …'
linux /boot/vmlinuz-5.4.0-40-generic root=UUID=1fa59735-f890-465a-a6fa-9c3530f1de77 ro quiet cryptdevice=UUID=9691304c-2794-476a-891d-09ee8ce46aad:luks-9691304c-2794-476a-891d-09ee8ce46aad root=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad resume=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad splash $vt_handoff
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-5.4.0-40-generic
}
menuentry 'Ubuntu, mit Linux 5.4.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-40-generic-recovery-1fa59735-f890-465a-a6fa-9c3530f1de77' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
fi
echo 'Linux 5.4.0-40-generic wird geladen …'
linux /boot/vmlinuz-5.4.0-40-generic root=UUID=1fa59735-f890-465a-a6fa-9c3530f1de77 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-5.4.0-40-generic
}
menuentry 'Ubuntu, mit Linux 5.4.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-37-generic-advanced-1fa59735-f890-465a-a6fa-9c3530f1de77' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
fi
echo 'Linux 5.4.0-37-generic wird geladen …'
linux /boot/vmlinuz-5.4.0-37-generic root=UUID=1fa59735-f890-465a-a6fa-9c3530f1de77 ro quiet cryptdevice=UUID=9691304c-2794-476a-891d-09ee8ce46aad:luks-9691304c-2794-476a-891d-09ee8ce46aad root=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad resume=/dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad splash $vt_handoff
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-5.4.0-37-generic
}
menuentry 'Ubuntu, mit Linux 5.4.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-37-generic-recovery-1fa59735-f890-465a-a6fa-9c3530f1de77' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u 9691304c2794476a891d09ee8ce46aad
set root='cryptouuid/9691304c2794476a891d09ee8ce46aad'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/9691304c2794476a891d09ee8ce46aad' 1fa59735-f890-465a-a6fa-9c3530f1de77
else
search --no-floppy --fs-uuid --set=root 1fa59735-f890-465a-a6fa-9c3530f1de77
fi
echo 'Linux 5.4.0-37-generic wird geladen …'
linux /boot/vmlinuz-5.4.0-37-generic root=UUID=1fa59735-f890-465a-a6fa-9c3530f1de77 ro recovery nomodeset
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-5.4.0-37-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (auf /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-5F33-A31F' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 5F33-A31F
else
search --no-floppy --fs-uuid --set=root 5F33-A31F
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### 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 hier nochmal eine Auflistung der Partitionen (es gibt nur 1 physische Festplatte):
sudo fdisk -lu
Festplatte /dev/sda: 465,78 GiB, 500107862016 Bytes, 976773168 Sektoren
Festplattenmodell: HGST HTS725050A7
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 74C0BDD0-B5B4-4888-9602-AB5DCAAA048E
Gerät Anfang Ende Sektoren Größe Typ
/dev/sda1 2048 976895 974848 476M Linux-Dateisystem
/dev/sda2 976896 1953791 976896 477M EFI-System
/dev/sda3 1953792 783204351 781250560 372,5G Linux-Dateisystem
/dev/sda4 783204352 783237119 32768 16M Microsoft reserviert
/dev/sda5 783237120 975692634 192455515 91,8G Microsoft Basisdaten
/dev/sda6 975693824 976773119 1079296 527M Windows-Wiederherstellungsumg
Festplatte /dev/mapper/luks-9691304c-2794-476a-891d-09ee8ce46aad: 372,54 GiB, 399998189568 Bytes, 781246464 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Hier nochmal die Dateisystem in übersichtlicher Form:
sudo lsblk -o name,uuid,fstype,mountpoint,label,size
NAME UUID FSTYPE MOUNTPOINT LABEL SIZE
sda 465,8G
├─sda1 2b448e18-f449-4f1d-9f16-15a2cb599e33 ext2 476M
├─sda2 5F33-A31F vfat /boot/efi 477M
├─sda3 9691304c-2794-476a-891d-09ee8ce46aad crypto_LU 372,5G
│ └─luks-9691304c-2794-476a-891d-09ee8ce46aad
│ 1fa59735-f890-465a-a6fa-9c3530f1de77 ext4 / 372,5G
├─sda4 16M
├─sda5 BitLocker 91,8G
└─sda6 9AEE9F08EE9EDBB7 ntfs 527M
Interessant könnte vielleicht noch die Analyse des Bootsektors sein:
sudo file -s -N -F';' /dev/sd*|egrep 'GR|ID=0xee|data$'| tr -s ';' '\n'
dev/sda
DOS/MBR boot sector
partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 976773167 sectors, extended partition table (last)
/dev/sda4
data
/dev/sda6
DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 975693824, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor)
NTFS, sectors/track 63, sectors 1079295, $MFT start cluster 44970, $MFTMirror start cluster 2, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 09aee9f08ee9edbb7
contains bootstrap BOOTMGR
So, das war nun schon erschlagend viel. Der Rest des Wiki-Artikels hat mich dann ehrlich gesagt noch mehr verwirrt. Bitte sagt mir, ob da nun schon das Richtige dabei war und Ihr mir weiterhelfen könnt oder was Ihr dazu noch benötigt. Danke!
PS: Die sda1 kannst du bestimmt mounten und den Inhalt einsehen ....
Das versuche ich gleich mal ...
Gruß win-linux-umsteiger