Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Poweroff after show welcome to grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
catzera
n00b
n00b


Joined: 22 Nov 2022
Posts: 22

PostPosted: Tue Jan 02, 2024 12:16 pm    Post subject: Poweroff after show welcome to grub Reply with quote

A desktop with windows 11 and gentoo double system. Only show welcome to grub then poweroff.
The desktop has a nvidia gpu and asus mainboard with 13700k. How can I get this fix? What information need I post?
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 489

PostPosted: Tue Jan 02, 2024 12:37 pm    Post subject: Reply with quote

The output of
Code:
efibootmgr
(from a live-system) and the /boot/grub/grub.cfg is a good start.

And make sure, that Secure Boot in your UEFI settings is disabled.
Back to top
View user's profile Send private message
catzera
n00b
n00b


Joined: 22 Nov 2022
Posts: 22

PostPosted: Wed Jan 03, 2024 7:11 am    Post subject: Reply with quote

efibootmgr
Code:

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0000,0002,0003
Boot0000* gentoo   HD(1,GPT,b37d5f47-bae0-3e4b-a280-f54bc5e5ec87,0x800,0x80000)/File(\EFI\gentoo\grubx64.efi)
Boot0002* Windows Boot Manager   HD(1,GPT,b37d5f47-bae0-3e4b-a280-f54bc5e5ec87,0x800,0x80000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000061000100000010000000040000007fff0400
Boot0003* UEFI: MI XMUP21YM 1100, Partition 2   PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/USB(0,0)/HD(2,GPT,511fff52-b47e-49b4-bc8c-61c9a4fce718,0x22c,0x1680)0000424f

grub.cfg
Code:

#
# 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 77f5aeca-6f35-446c-a01d-450c6a349f35
    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-77f5aeca-6f35-446c-a01d-450c6a349f35' {
   load_video
   insmod gzio
   insmod part_gpt
   insmod fat
   search --no-floppy --fs-uuid --set=root DAC7-C03E
   echo   'Loading Linux 6.6.9-gentoo-dist ...'
   linux   /vmlinuz-6.6.9-gentoo-dist root=UUID=77f5aeca-6f35-446c-a01d-450c6a349f35 ro 
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-6.6.9-gentoo-dist.img
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-77f5aeca-6f35-446c-a01d-450c6a349f35' {
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.9-gentoo-dist' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.9-gentoo-dist-advanced-77f5aeca-6f35-446c-a01d-450c6a349f35' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root DAC7-C03E
      echo   'Loading Linux 6.6.9-gentoo-dist ...'
      linux   /vmlinuz-6.6.9-gentoo-dist root=UUID=77f5aeca-6f35-446c-a01d-450c6a349f35 ro 
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.6.9-gentoo-dist.img
   }
   menuentry 'Gentoo GNU/Linux, with Linux 6.6.9-gentoo-dist (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.9-gentoo-dist-recovery-77f5aeca-6f35-446c-a01d-450c6a349f35' {
      load_video
      insmod gzio
      insmod part_gpt
      insmod fat
      search --no-floppy --fs-uuid --set=root DAC7-C03E
      echo   'Loading Linux 6.6.9-gentoo-dist ...'
      linux   /vmlinuz-6.6.9-gentoo-dist root=UUID=77f5aeca-6f35-446c-a01d-450c6a349f35 ro single
      echo   'Loading initial ramdisk ...'
      initrd   /initramfs-6.6.9-gentoo-dist.img
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
   fwsetup --is-supported
   if [ "$?" = 0 ]; then
      menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
         fwsetup
      }
   fi
fi
### 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 ###
Back to top
View user's profile Send private message
catzera
n00b
n00b


Joined: 22 Nov 2022
Posts: 22

PostPosted: Wed Jan 03, 2024 7:17 am    Post subject: Reply with quote

Grub didn't show it's menu, it just suddenly shutdown after show the message .Is there something wrong with my hardware ?

(Windows runs well)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3846

PostPosted: Wed Jan 03, 2024 10:26 am    Post subject: Reply with quote

Are you from scratch, or is that a post grub upgrade situation?re

Here, M$ is only available through grub.
Thus no grub menu is no access to M$.
Sorry to ask, can you elaborate about "Windows runs well".

For some reason after upgrading ebuild to latest, I didn't completed full grub install.
I came to a situation similar to your: quick grub display, then access to bios here.

So I went back to gentoo install ISO, chrooted and achieved the full grub install.
I was so messy in my initial procedure, I even lost my /etc/grub/default in the process.

Luckily enough, this is one of the system config file I don't edit directly but script does a replicated copy elsewhere and rename it timestamped if any change.

Thks 4 ur attention, interest and support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 489

PostPosted: Wed Jan 03, 2024 5:01 pm    Post subject: Reply with quote

I do not think it is a hardware issue.

Which Grub version are you using? 2.06 or 2.12? I am asking because I see a part in your config that I never saw before:

Code:
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###


It looks like this was added with Grub 2.12. Did you do a "grub-install" after emerging the new Grub version?
Back to top
View user's profile Send private message
Lok
n00b
n00b


Joined: 23 Mar 2006
Posts: 34

PostPosted: Tue Feb 20, 2024 8:41 pm    Post subject: Reply with quote

I have the same problem after update to 2.12-r1 and grub-mkconfig
The problem is in this code /boot/grub/grub.cfg

Code:
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        fwsetup --is-supported
        if [ "$?" = 0 ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

if I edit It works good
Code:

### BEGIN /etc/grub.d/30_uefi-firmware ###
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }

### END /etc/grub.d/30_uefi-firmware ###
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1902

PostPosted: Tue Feb 20, 2024 8:46 pm    Post subject: Reply with quote

Lok wrote:
I have the same problem after update to 2.12-r1 and grub-mkconfig
The problem is in this code /boot/grub/grub.cfg

Code:
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        fwsetup --is-supported
        if [ "$?" = 0 ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

if I edit It works good
Code:

### BEGIN /etc/grub.d/30_uefi-firmware ###
                menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
                        fwsetup
                }

### END /etc/grub.d/30_uefi-firmware ###

This will only return on the next update of grub-mkconfig. If you want to permanently disable this, run chmod -x /etc/grub.d/30_uefi-firmware
After the chmod, the entire stanza will be omitted.
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 148

PostPosted: Sat Mar 02, 2024 5:00 am    Post subject: Reply with quote

I'm going to jump in here and say I'm having issues with grub-2.12-r1 as well.

My computer reboots after attempting to get to the grub menu, it doesn't even get to the boot menu.

I've reinstalled the grub efi boot manager entry via grub-install, and now efibootmgr.

I'm going to try chmod -x /etc/grub.d/30_uefi-firmware and reboot and see what happens.

emerge --info

http://dpaste.com/EZL8FPPMM
Back to top
View user's profile Send private message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 126

PostPosted: Sat Mar 02, 2024 6:12 pm    Post subject: Reply with quote

alecStewart1 wrote:
I'm going to jump in here and say I'm having issues with grub-2.12-r1 as well.

My computer reboots after attempting to get to the grub menu, it doesn't even get to the boot menu.


I'm stuck in a BIOS loop since updating to grub-2.12-r1, this seems to be a widespread problem. I'm kind of scared to reboot any of my computers right now because they've all updated grub at this point. I'm reading up on grub-install because I don't remember how to set this up properly.

Scratch that, I ran grub-install again and no error was reported and now I'm getting dumped into grub rescue. Grumble grumble.
Back to top
View user's profile Send private message
Lok
n00b
n00b


Joined: 23 Mar 2006
Posts: 34

PostPosted: Sat Mar 02, 2024 7:24 pm    Post subject: Reply with quote

grub 2.12-r2 the same issue.
I had to run chmod -x /etc/grub.d/30_uefi-firmware
Back to top
View user's profile Send private message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 126

PostPosted: Sun Mar 03, 2024 2:09 am    Post subject: Reply with quote

I fixed it on my end, not sure if it'll help OP.

I had to delete my EFI directory and then re-run grub-install with --efi-directory=/boot.
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 148

PostPosted: Tue Apr 09, 2024 2:22 am    Post subject: Reply with quote

I've found that chmod -x /etc/grub.d/30_uefi-firmware seems to be the key for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum