I have box with two HD's - NVMe-main disk on intel-i5 - SSD - transferred from Atom computer to intel-i5 Both disk are bootable, both have Disklabel type: gpt EIF After installation I added "os-prbler" that detected the second drive: # os-prober /dev/sda3:Gentoo/Linux:Gentoo:linux added the second disk to the boot menu: grub-mkconfig -o /boot/grub/grub.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-6.1.57-gentoo Found linux image: /boot/vmlinuz-6.1.57-gentoo.old Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. Found Gentoo/Linux on /dev/sda3 Adding boot menu entry for UEFI Firmware Settings ... done partial /boot/grub/grub.cfg file: .... menuentry 'Gentoo/Linux (on /dev/sda3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-current--88> 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-d> else search --no-floppy --fs-uuid --set=root 88f8a211-f72b-4294-85ef-d6b93697286d fi linux /boot/kernel-current root=/dev/sda3 When I select this entry: "kernel-current" at boot I get a message: /boot/kernel-current not found. The file is there on /dev/sda3 in /boot directory lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sda ├─sda1 vfat FAT32 9D89-3968 ├─sda2 swap 1 8ea5eb4a-2d12-4c12-bb3e-d11241dc2730 ├─sda3 ext4 1.0 88f8a211-f72b-4294-85ef-d6b93697286d 196.4G 50% /atom └─sda4 vfat FAT32 5DC1-B636 nvme0n1 ├─nvme0n1p1 vfat FAT32 03FD-4F30 ├─nvme0n1p2 swap 1 67d076c6-5273-454f-8ed0-83f3b96e15a3 [SWAP] └─nvme0n1p3 ext4 1.0 0a0b75fc-3405-490c-a8fc-e3092a686cf3 854.5G 1% / Reproducible: Always
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.