Grubmenüeintrag Win11

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Benutzeravatar
Draal
Beiträge: 542
Registriert: 11.03.2005 14:45:26

Re: Grubmenüeintrag Win11

Beitrag von Draal » 21.10.2023 23:55:56

Schon klar, wollts halt nur mal selbst ausprobieren und teilen. :wink:

Chameleon
Beiträge: 308
Registriert: 15.07.2023 11:11:28

Re: Grubmenüeintrag Win11

Beitrag von Chameleon » 22.10.2023 12:18:38

Hi @ Draal,

ich finds richtig super gut, dass du das mit dem "zurückbasteln" selber ausprobiert hast - nichts geht über eigene Erfahrungswerte. :THX:

Benutzeravatar
Draal
Beiträge: 542
Registriert: 11.03.2005 14:45:26

Re: Grubmenüeintrag Win11

Beitrag von Draal » 22.10.2023 15:56:20

Nacharbeitung:

/etc/defaul/grub wird vom grub-customizer 'verstümmelt'

Code: Alles auswählen

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=""
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE="640x480"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_SAVEDEFAULT="false"
update-grub erzeugte eine Fehlermeldung, die durch den Eintrag von grub-customizer erzeugt wurde.

Code: Alles auswählen

}
menuentry "Windows 10"{
       set root='(hd0,1)'
       search --no-floppy --fs-uuid --set ACBAF6D4BAF699D2
       drivemap -s (hd0) ${root}
       chainloader +1
}
Ich habe das auskommentiert, genau wie in der /etc/grub.d/40_custom.

Den os-prober habe ich nach einem reboot in /etc/default/grub aktiviert.

update-grub

Und schon wurde Windwos 11 korrekt in die /boot/grub/grub.cfg eingetragen:

Code: Alles auswählen

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 11 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-ACBAF6D4BAF699D2' {
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  ACBAF6D4BAF699D2
        else
          search --no-floppy --fs-uuid --set=root ACBAF6D4BAF699D2
        fi
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###
Den os-prober habe ich wieder deaktiviert.

Ich bin jetzt froh, dass ich einen sauber konfigurierten Bootloader nutzen kann.

Antworten