Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] correct way to upgrade grub?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Wed May 09, 2018 9:56 am    Post subject: [solved] correct way to upgrade grub? Reply with quote

i have grub 2.00 on my current system. i want to use the microcode feature of the newest grub v 2.02-r1.

what is the correct way to upgrade grub in that case?

i am asking because updating the package still shows grub 2.00 in boot menu.
so i tried reinstalling it to /dev/sda - boot menu shows correct version 2.02 but gets stuck in grub shell.


Last edited by h0mer`- on Fri May 11, 2018 9:05 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed May 09, 2018 3:12 pm    Post subject: Reply with quote

"but gets stuck in grub shell."
means it can't find or can't read grub.cfg
booting in UEFI mode? booting in Legacy BIOS mode? not a UEFI motherboard?
what exact command did you issue when reinstalling grub?
If using a separate boot partition, was it mounted when the grub reinstall command was issued?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Thu May 10, 2018 10:01 am    Post subject: Reply with quote

boot partition was mounted
legacy bios mode in a vm

grub-install /dev/sda
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu May 10, 2018 11:57 am    Post subject: Reply with quote

Does grub.cfg exist in the location where grub expects to find it?
boot system rescue cd/usb, mount the gentoo partitions; nominally:
Code:
mount /dev/sda4 /mnt/gentoo
ls -lR /mnt/gentoo/boot | wgetpaste -t
mount /dev/sda2 /mnt/gentoo/boot
ls -lR /mnt/gentoo/boot | wgetpaste -t
if your root partition is not /dev/sda4 and/or your boot partition is not /dev/sda2 substitute your values. Post the url's returned here.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu May 10, 2018 1:08 pm    Post subject: Reply with quote

You want to use microcode update in a virtual machine? 8O
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Fri May 11, 2018 9:05 am    Post subject: Reply with quote

it works now and i have no idea what i did wrong.

i marked the thread as solved - thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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