Jump to content

Changed CPUs (Athlon to Ryzen) now Grub shows up, how to fix?

Go to solution Solved by Sauron,
8 minutes ago, Radium_Angel said:

AFAIK, nothing.

When I put in the new CPU, and powered back on, the mobo said "new CPU detected, resetting BIOS to default" which it was anyway (again, AFAIK) no OCing, no XMP, I think the only thing I had changed other than default, was turning off the TPM settings, since the board doesn't have a TPM unit anyway.

Nope and Nope.

Hence my surprise....

 

Try regenerating your grub configuration, maybe the BIOS reset randomly reassigned drive labels

grub-mkconfig -o /boot/grub/grub.cfg

 

This is something I wasn't expecting.

My mobo had a lowly Athlon 3000 on it, but supported a Ryzen CPU.

So while under the Athlon, I installed Ubuntu 20.04 LTS (XFCE edition) and all was well.

Swapped out the Athlon to the Ryzen 5 2600, reconfigured the BIOS and when the system booted, the Grub loader shows up.

 

Confused, I typed "exit" (or quit, don't recall which) and the system proceeded to boot into Ubuntu normally.

But every time I reboot the system, Grub shows back up again.

 

This is a minor problem to be sure, but still not something I had expected. How do I fix this?

IMG_20200917_1216588.jpg

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

23 minutes ago, Radium_Angel said:

reconfigured the BIOS

Well... what did you change?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

This means grub can't find grub.cfg

Do you by any chance dual boot or have more than one drive?

Your CPU swap shouldn't have affected anything with Grub.

Link to comment
Share on other sites

Link to post
Share on other sites

27 minutes ago, Radium_Angel said:

reconfigured the BIOS and when the system booted

My bet is that you changed the default EFI boot setting, try to edit it.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Sauron said:

Well... what did you change?

AFAIK, nothing.

When I put in the new CPU, and powered back on, the mobo said "new CPU detected, resetting BIOS to default" which it was anyway (again, AFAIK) no OCing, no XMP, I think the only thing I had changed other than default, was turning off the TPM settings, since the board doesn't have a TPM unit anyway.

2 minutes ago, Nayr438 said:

Do you by any chance dual boot or have more than one drive?

Nope and Nope.

2 minutes ago, Nayr438 said:

Your CPU swap shouldn't have affected anything with Grub.

Hence my surprise....

 

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, Radium_Angel said:

AFAIK, nothing.

When I put in the new CPU, and powered back on, the mobo said "new CPU detected, resetting BIOS to default" which it was anyway (again, AFAIK) no OCing, no XMP, I think the only thing I had changed other than default, was turning off the TPM settings, since the board doesn't have a TPM unit anyway.

Nope and Nope.

Hence my surprise....

 

Try regenerating your grub configuration, maybe the BIOS reset randomly reassigned drive labels

grub-mkconfig -o /boot/grub/grub.cfg

 

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

You could fix it in a chroot, hopefully these paths and commands are correct. I don't use Ubuntu to verify it.

  • boot a live iso and open a terminal
  • fdisk -l to find the partition Ubuntu is installed to, also note the Fat32 partition
  • mkdir /mnt
  • mount /dev/partition /mnt
  • chroot /mnt
  • cat /etc/fstab , check and see if the Fat32 partition has a mount point
    • if, yes
      • mount /dev/fat32partition /mountpath_in_fstab
      • grub-install --target=x86_64-efi --efi-directory=mountpath_in_fstab --bootloader-id="Ubuntu"
    • if no
      • mkdir /boot/EFI
        • if the directory already exists, that's fine
      • mount /dev/fat32partition /boot/EFI
      • grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id="Ubuntu"
  • grub-mkconfig -o /boot/grub/grub.cfg
  • exit
  • reboot

 

Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Sauron said:

Try regenerating your grub configuration, maybe the BIOS reset randomly reassigned drive labels


grub-mkconfig -o /boot/grub/grub.cfg

 

This solved it, thank you for this :)

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Radium_Angel said:

This solved it, thank you for this :)

You're welcome!

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/17/2020 at 12:14 PM, Sauron said:

You're welcome!

For me when I try this it shows it can’t find command grub-mkconfig

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Rylyguy said:

For me when I try this it shows it can’t find command grub-mkconfig

What distro?

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Radium_Angel said:

What distro?

I have macOS and windows dual booted

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Rylyguy said:

I have macOS and windows dual booted

oh, MacOS will probably have an entirely different set of commands. You'd have to google the equivalent

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Radium_Angel said:

oh, MacOS will probably have an entirely different set of commands. You'd have to google the equivalent

Ok I had made another post and sauron replied sending me here

Link to comment
Share on other sites

Link to post
Share on other sites

13 hours ago, Rylyguy said:

I have macOS

Oh... you should have specified that in the post you made, grub is generally used with Linux

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, Sauron said:

Oh... you should have specified that in the post you made, grub is generally used with Linux

I had put in the post that I was dual booted with macOS and windows

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×