verfaßt von Fabian86 , Hannover, 10.10.2022, 20:40:16
Hallo zusammen,
ich komme nicht weiter und das Internet half mir nicht weiter, weil vieles nicht mehr aktuell ist. Ich habe Linux und Windows auf einer Festplatte und möchte, dass Windows 7 in der Menüanzeige oben steht, dann erst Suse Linux 15.4.
Nur weiß ich nicht, ob ich die Grub anpassen soll oder welche Konfigurationsdatei, anbei ein paar Screenshots:
Hier oder Grub? Eine kurze knappe Antwort reicht mir, da ich gern morgen das NB mein Dad wiedergeben mag. Danke
Windows 7 als Standard
Bootreihenfolge ändern
Systeminformation
Grub Konfigurationen
/boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -f ${config_directory}/grubenv ]; then
load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${env_block}" ] ; then
set env_block="(${root})${env_block}"
export env_block
load_env -f "${env_block}"
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
if [ "${env_block}" ] ; then
save_env -f "${env_block}" next_entry
fi
set boot_once=true
else
set default="${saved_entry}"
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}"
if [ "${env_block}" ] ; then
save_env -f "${env_block}" saved_entry
else
save_env saved_entry
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_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
font="/usr/share/grub2/unicode.pf2"
fi
if loadfont $font ; then
if [ "${grub_platform}" = "efi" ]; then
echo "Please press 't' to show the boot menu on this console"
fi
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
set timeout=0
elif [ 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/00_tuned ###
set tuned_params=""
set tuned_initrd=""
### END /etc/grub.d/00_tuned ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 15.4' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-db7939cd-bf6d-4976-8a31-5362e0d06033' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
linux /boot/vmlinuz-5.14.21-150400.24.21-default root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.14.21-150400.24.21-default
}
submenu 'Advanced options for openSUSE Leap 15.4' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
menuentry 'openSUSE Leap 15.4, with Linux 5.14.21-150400.24.21-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.21-150400.24.21-default-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
linux /boot/vmlinuz-5.14.21-150400.24.21-default root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.14.21-150400.24.21-default
}
menuentry 'openSUSE Leap 15.4, with Linux 5.14.21-150400.24.21-default (recovery mode)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.21-150400.24.21-default-recovery-db7939cd-bf6d-4976-8a31-5362e0d06033' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
linux /boot/vmlinuz-5.14.21-150400.24.21-default root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.14.21-150400.24.21-default
}
menuentry 'openSUSE Leap 15.4, with Linux 5.14.21-150400.22-default' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.21-150400.22-default-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Linux 5.14.21-150400.22-default ...'
linux /boot/vmlinuz-5.14.21-150400.22-default root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.14.21-150400.22-default
}
menuentry 'openSUSE Leap 15.4, with Linux 5.14.21-150400.22-default (recovery mode)' --hotkey=1 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.14.21-150400.22-default-recovery-db7939cd-bf6d-4976-8a31-5362e0d06033' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Linux 5.14.21-150400.22-default ...'
linux /boot/vmlinuz-5.14.21-150400.22-default root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.14.21-150400.22-default
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'openSUSE Leap 15.4, with Xen hypervisor' --class opensuse --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-simple-db7939cd-bf6d-4976-8a31-5362e0d06033' {
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Xen 4.16.1_06-150400.4.8 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen-4.16.1_06-150400.4.8.gz placeholder vga=gfx-1024x768x16 ${xen_rm_opts}
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
module2 /boot/vmlinuz-5.14.21-150400.24.21-default placeholder root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initrd-5.14.21-150400.24.21-default
}
submenu 'Advanced options for openSUSE Leap 15.4 (with Xen hypervisor)' $menuentry_id_option 'gnulinux-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
submenu 'Xen hypervisor, version 4.16.1_06-150400.4.8' $menuentry_id_option 'xen-hypervisor-4.16.1_06-150400.4.8-db7939cd-bf6d-4976-8a31-5362e0d06033' {
menuentry 'openSUSE Leap 15.4, with Xen 4.16.1_06-150400.4.8 and Linux 5.14.21-150400.24.21-default' --class opensuse --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.14.21-150400.24.21-default-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Xen 4.16.1_06-150400.4.8 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen-4.16.1_06-150400.4.8.gz placeholder vga=gfx-1024x768x16 ${xen_rm_opts}
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
module2 /boot/vmlinuz-5.14.21-150400.24.21-default placeholder root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initrd-5.14.21-150400.24.21-default
echo 'Loading XSM policy ...'
module2 /boot/xenpolicy-4.16.1_06-150400.4.8
}
menuentry 'openSUSE Leap 15.4, with Xen 4.16.1_06-150400.4.8 and Linux 5.14.21-150400.24.21-default (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.14.21-150400.24.21-default-recovery-db7939cd-bf6d-4976-8a31-5362e0d06033' {
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Xen 4.16.1_06-150400.4.8 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen-4.16.1_06-150400.4.8.gz placeholder ${xen_rm_opts}
echo 'Loading Linux 5.14.21-150400.24.21-default ...'
module2 /boot/vmlinuz-5.14.21-150400.24.21-default placeholder root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 single
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initrd-5.14.21-150400.24.21-default
echo 'Loading XSM policy ...'
module2 /boot/xenpolicy-4.16.1_06-150400.4.8
}
menuentry 'openSUSE Leap 15.4, with Xen 4.16.1_06-150400.4.8 and Linux 5.14.21-150400.22-default' --class opensuse --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.14.21-150400.22-default-advanced-db7939cd-bf6d-4976-8a31-5362e0d06033' {
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Xen 4.16.1_06-150400.4.8 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen-4.16.1_06-150400.4.8.gz placeholder vga=gfx-1024x768x16 ${xen_rm_opts}
echo 'Loading Linux 5.14.21-150400.22-default ...'
module2 /boot/vmlinuz-5.14.21-150400.22-default placeholder root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 splash=silent preempt=full quiet security=apparmor mitigations=auto
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initrd-5.14.21-150400.22-default
echo 'Loading XSM policy ...'
module2 /boot/xenpolicy-4.16.1_06-150400.4.8
}
menuentry 'openSUSE Leap 15.4, with Xen 4.16.1_06-150400.4.8 and Linux 5.14.21-150400.22-default (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os --class xen $menuentry_id_option 'xen-gnulinux-5.14.21-150400.22-default-recovery-db7939cd-bf6d-4976-8a31-5362e0d06033' {
insmod part_msdos
insmod xfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 --hint='hd0,msdos4' db7939cd-bf6d-4976-8a31-5362e0d06033
else
search --no-floppy --fs-uuid --set=root db7939cd-bf6d-4976-8a31-5362e0d06033
fi
echo 'Loading Xen 4.16.1_06-150400.4.8 ...'
if [ "$grub_platform" = "pc" -o "$grub_platform" = "" ]; then
xen_rm_opts=
else
xen_rm_opts="no-real-mode edd=off"
fi
multiboot2 /boot/xen-4.16.1_06-150400.4.8.gz placeholder ${xen_rm_opts}
echo 'Loading Linux 5.14.21-150400.22-default ...'
module2 /boot/vmlinuz-5.14.21-150400.22-default placeholder root=UUID=db7939cd-bf6d-4976-8a31-5362e0d06033 single
echo 'Loading initial ramdisk ...'
module2 --nounzip /boot/initrd-5.14.21-150400.22-default
echo 'Loading XSM policy ...'
module2 /boot/xenpolicy-4.16.1_06-150400.4.8
}
}
}
### 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 7 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-1CAE1158AE112C30' {
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 --hint='hd0,msdos1' 1CAE1158AE112C30
else
search --no-floppy --fs-uuid --set=root 1CAE1158AE112C30
fi
parttool ${root} hidden-
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### 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 ###
### BEGIN /etc/grub.d/80_suse_btrfs_snapshot ###
### END /etc/grub.d/80_suse_btrfs_snapshot ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
### BEGIN /etc/grub.d/95_textmode ###
if [ "${grub_platform}" = "efi" ]; then
# On EFI systems we can only have graphics *or* serial, so allow the user
# to switch between the two
hiddenentry 'Text mode' --hotkey 't' {
set textmode=true
terminal_output console
}
fi
### END /etc/grub.d/95_textmode ###
--
Mitglied nach Spotlight.de seit 14.03.2008 und Netz-Treff.de seit 08.01.2019.
Update 10.09.2024
gesamter Thread: