I have an server booting uefi gentoo from usb stick, it was running on a asus mb,
the mb sent itself to the next life and instead I have an asrock mb.
I've disabled CSM and tried to boot the os. the boot mgr labels two partitions (our of 4), 1 and 2.
if I select part1, I get to grub rescue.
if I select part2 I get a blinking screen and back to the boot manager.
in grub rescue, I can see all the partitions, only the last one has a known fs.
if I look at the hdd from another system everything looks fine.
fdisk shows all ok:
Code: Select all
Disk /dev/sdf: 14.33 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra Fit
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5BB600F4-79E6-41F4-B86B-8A478A4927B1
Device Start End Sectors Size Type
/dev/sdf1 2048 6143 4096 2M BIOS boot
/dev/sdf2 6144 268287 262144 128M EFI System
/dev/sdf3 268288 5511167 5242880 2.5G Linux swap
/dev/sdf4 5511168 30029201 24518034 11.7G Linux filesystem
Code: Select all
chroot) NCC-5001D /boot/grub # ls -l
total 34
drwxr-xr-x 2 root root 2048 Aug 22 13:27 fonts
-rwxr-xr-x 1 root root 8113 Oct 10 22:48 grub.cfg
-rwxr-xr-x 1 root root 1024 Aug 22 13:27 grubenv
drwxr-xr-x 3 root root 2048 Aug 22 13:27 themes
drwxr-xr-x 2 root root 20480 Aug 22 13:27 x86_64-efi
(chroot) NCC-5001D /boot/grub # cat 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
set root='hd2,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4 25c167e3-8c85-4ad9-98d5-117676d1095e
else
search --no-floppy --fs-uuid --set=root 25c167e3-8c85-4ad9-98d5-117676d1095e
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=C
insmod gettext
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-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.66-gentoo ...'
linux /kernel-5.4.66-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait modprobe.blacklist=vfio
# video=efifb:off,vesafb:off,simplefb=off
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-25c167e3-8c85-4ad9-98d5-117676d1095e' {
menuentry 'Gentoo GNU/Linux, with Linux 5.4.66-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.66-gentoo-advanced-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.66-gentoo ...'
linux /kernel-5.4.66-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
menuentry 'Gentoo GNU/Linux, with Linux 5.4.66-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.66-gentoo-recovery-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.66-gentoo ...'
linux /kernel-5.4.66-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro single intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
menuentry 'Gentoo GNU/Linux, with Linux 5.4.60-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.60-gentoo-advanced-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.60-gentoo ...'
linux /kernel-5.4.60-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
menuentry 'Gentoo GNU/Linux, with Linux 5.4.60-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.60-gentoo-recovery-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.60-gentoo ...'
linux /kernel-5.4.60-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro single intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
menuentry 'Gentoo GNU/Linux, with Linux 5.4.48-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.48-gentoo-advanced-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.48-gentoo ...'
linux /kernel-5.4.48-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
menuentry 'Gentoo GNU/Linux, with Linux 5.4.48-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.48-gentoo-recovery-25c167e3-8c85-4ad9-98d5-117676d1095e' {
load_video
insmod gzio
insmod part_gpt
insmod fat
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 7857-B3C4
else
search --no-floppy --fs-uuid --set=root 7857-B3C4
fi
echo 'Loading Linux 5.4.48-gentoo ...'
linux /kernel-5.4.48-gentoo root=PARTUUID=37636e1b-b9af-48b3-83ee-eea62354797b ro single intel_iommu=on iommu=pt pcie_acs_override=id:8086:a170 rootwait video=efifb:off,vesafb:off,simplefb=off
}
}
### 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 ###
### END /etc/grub.d/30_os-prober ###
### 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 ###

