| Summary: | os-prober installs boot menu in grub.cfg but disk will not boot. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Joseph <syscon780> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | floppym |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Joseph
2023-12-08 03:04:41 UTC
Please attach the full grub.cfg. Also, please show the output of "ls -l /atom/boot". (In reply to Mike Gilbert from comment #1) > Please attach the full grub.cfg. Thank you for looking at it. I reinstall grub with: grub-install --boot-directory=/atom/boot/ --target=x86_64-efi --efi-directory=/atom/efi grub-mkconfig -o /atom/boot/grub/grub.cfg Here is "grub.cfg": cat /atom/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 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 ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm fi 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 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 echo 'Loading Linux 6.1.57-gentoo ...' linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro } submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 echo 'Loading Linux 6.1.57-gentoo ...' linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro } menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-recovery-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 echo 'Loading Linux 6.1.57-gentoo ...' linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro single } menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo.old-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 echo 'Loading Linux 6.1.57-gentoo.old ...' linux /boot/vmlinuz-6.1.57-gentoo.old root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro } menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo.old-recovery-0a0b75fc-3405-490c-a8fc-e3092a686cf3' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3 echo 'Loading Linux 6.1.57-gentoo.old ...' linux /boot/vmlinuz-6.1.57-gentoo.old root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro single } } ### 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 ### menuentry 'Gentoo/Linux (on /dev/sda3)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-88f8a211-f72b-4294-85ef-d6b93697286d' { insmod part_gpt insmod ext2 set root='hd0,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d else search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d fi linux /boot/kernel-old root=/dev/sda3 } submenu 'Advanced options for Gentoo/Linux (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-88f8a211-f72b-4294-85ef-d6b93697286d' { menuentry 'Gentoo/Linux (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-old--88f8a211-f72b-4294-85ef-d6b93697286d' { insmod part_gpt insmod ext2 set root='hd0,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d else search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d fi linux /boot/kernel-old root=/dev/sda3 } menuentry 'Gentoo/Linux (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-current--88f8a211-f72b-4294-85ef-d6b93697286d' { insmod part_gpt insmod ext2 set root='hd0,gpt3' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d else search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d fi linux /boot/kernel-current root=/dev/sda3 } } ### 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 ### (In reply to Mike Gilbert from comment #2) > Also, please show the output of "ls -l /atom/boot". i5_new /home/fd # ll /atom/boot total 20920 -rw-r--r-- 1 root root 3711374 Dec 6 17:42 System.map-current -rw-r--r-- 1 root root 3643016 Dec 6 12:30 System.map-old -rw-r--r-- 1 root root 109969 Dec 6 17:43 config-current -rw-r--r-- 1 root root 109603 Dec 6 12:31 config-old drwxr-xr-x 6 root root 4096 Dec 9 10:58 grub -rw-r--r-- 1 root root 7033632 Dec 6 17:42 kernel-current -rw-r--r-- 1 root root 6795760 Dec 6 12:31 kernel-old What version of sys-boot/grub is being used to generate grub.cfg? (In reply to Mike Gilbert from comment #5) > What version of sys-boot/grub is being used to generate grub.cfg? sys-boot/grub-2.06-r9 I booted to new nvme-disk and install grub to SSD-disk The SSD-disk is running old Gentoo installation. Here is grub.cfg from NVMe-disk:
i5_new /home/fd # 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
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 ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
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 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
echo 'Loading Linux 6.1.57-gentoo ...'
linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
echo 'Loading Linux 6.1.57-gentoo ...'
linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo-recovery-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
echo 'Loading Linux 6.1.57-gentoo ...'
linux /boot/vmlinuz-6.1.57-gentoo root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro single
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo.old' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo.old-advanced-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
echo 'Loading Linux 6.1.57-gentoo.old ...'
linux /boot/vmlinuz-6.1.57-gentoo.old root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro
}
menuentry 'Gentoo GNU/Linux, with Linux 6.1.57-gentoo.old (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.57-gentoo.old-recovery-0a0b75fc-3405-490c-a8fc-e3092a686cf3' {
load_video
if [ "x$grub_platform" = xefi ]; then
set gfxpayload=keep
fi
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0a0b75fc-3405-490c-a8fc-e3092a686cf3
echo 'Loading Linux 6.1.57-gentoo.old ...'
linux /boot/vmlinuz-6.1.57-gentoo.old root=PARTUUID=d75dfcd4-7534-7347-92e0-dc74e290ca4e ro single
}
}
### 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 ###
menuentry 'Gentoo/Linux (on /dev/sda3)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-88f8a211-f72b-4294-85ef-d6b93697286d' {
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d
else
search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d
fi
linux /boot/kernel-old root=/dev/sda3
}
submenu 'Advanced options for Gentoo/Linux (on /dev/sda3)' $menuentry_id_option 'osprober-gnulinux-advanced-88f8a211-f72b-4294-85ef-d6b93697286d' {
menuentry 'Gentoo/Linux (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-old--88f8a211-f72b-4294-85ef-d6b93697286d' {
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d
else
search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d
fi
linux /boot/kernel-old root=/dev/sda3
}
menuentry 'Gentoo/Linux (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-current--88f8a211-f72b-4294-85ef-d6b93697286d' {
insmod part_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 88f8a211-f72b-4294-85ef-d6b93697286d
else
search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d
fi
linux /boot/kernel-current root=/dev/sda3
}
}
### 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 ###
Sorry, but I have no idea what the problem is here. I think you would need a more interactive debugging session to get to the bottom of it. |