Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Re-run grub-install to update installed boot code!

18 views
Skip to first unread message

Grant Edwards

unread,
Feb 16, 2024, 10:00:05 AMFeb 16
to
Today's routine update says:

Re-run grub-install to update installed boot code!

Is "sudo grub-install" really all I have to do? Grub knows where/how
everthing was originally installed and will do the right thing without
any options?

Or do I have to run grub-install with all the same options that were
originally used to install grub?

[I use a manually generated grub.cfg file, so I'm ignoring the message
that tells me I to run "grub-mkconfig".]

--
Grant

Dale

unread,
Feb 17, 2024, 6:30:06 AMFeb 17
to
I been wondering the same since I saw this posted on -dev.  The news
item seems to mention the EFI booting but I'm sure us legacy booting
users need to do the same.  At this point, I may skip updating grub this
week until I know exactly what I'm supposed to do as well.  I'd think we
need to reinstall like when we first did our install but not sure.  :/ 
It would suck to have a unbootable system. 

Dale

:-)  :-) 

Grant Edwards

unread,
Feb 17, 2024, 3:40:05 PMFeb 17
to
On 2024-02-17, Dale <rdale...@gmail.com> wrote:
> Grant Edwards wrote:
>> Today's routine update says:
>>
>> Re-run grub-install to update installed boot code!
>>
>> Is "sudo grub-install" really all I have to do? [...]
>>
>> Or do I have to run grub-install with all the same options that
>> were originally used to install grub?
>
> I been wondering the same since I saw this posted on -dev.  The news
> item seems to mention the EFI booting but I'm sure us legacy booting
> users need to do the same.  At this point, I may skip updating grub
> this week until I know exactly what I'm supposed to do as well.  I'd
> think we need to reinstall like when we first did our install but
> not sure.  :/

That was my guess. I should have recorded the options originally
passed to grub-install. Now that I have BIOS boot partitions (instead
of using embedded blocklists) on all my machines, reinstalling grub
should be trivial. I think all I have to do is tell grub-install the
boot device.

> It would suck to have a unbootable system.

More than once I've had to boot from either systemrescuecd or minimal
gentoo install ISO so I could re-install (or re-configure) grub after
someting gets messed up. It's not difficult, but it is annoying.

--
Grant

Dale

unread,
Feb 18, 2024, 12:00:05 PMFeb 18
to
I updated my NAS box OS.  It updated grub as well.  I figured it would
be a good test system.  All I did was this:


nas / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
nas / #


I rebooted the system and it booted just fine here.  According to ls,
files in ls /boot/grub/i386-pc/ were updated.  They had today's date. 

So, I guess it is pretty simple.  Now to remember doing this.  Heck,
I've never paid much attention to grub updating before. 

Dale

:-)  :-) 
0 new messages