On Saturday, 5 February 2022 08:37:48 GMT Dale wrote:
> Arve Barsnes wrote:
> > On Sat, 5 Feb 2022 at 07:37, Dale <[email protected]> wrote:
> >> Should I reinstall grub after removing the old directory so it puts
> >> things where it needs to be or what?  Or does a new install have that
> >> old directory too?  While at it, is there something that can give me
> >> better options in cases like this or do I need to stop renaming stuff?
> > 
> > For what it's worth, this machine is new enough to only ever having
> > had grub2 on it, and the directory in /boot is still named /boot/grub
> > 
> > Regards,
> > Arve
> 
> I have a grub, old from original install, and grub2, that was added when
> I switched to the new grub.  I would have thought the old directory was
> no longer needed but it appears it is for some reason.

You don't provide enough information about your /boot, fs layout, etc., so it 
is difficult to know why the new GRUB2 failed to work.  As a rule of thumb, if 
GRUB2 had worked before the likely problem is file corruption, or forgetting 
to run grub-mkconfig after you made and copied over your new kernel and initrd 
- it depends on what the message was when it failed to boot and what file it 
couldn't find.

I'd run fsck on the /boot partition to make sure there is no fs corruption and 
hdparm on the disk would be advisable too.


> I've reinstalled
> using the grub-mkconfig command but have not reinstalled using the
> grub-install command.  I'm tempted to rename the old directory, install
> like I would from a fresh new install, MBR and all, then see if it
> boots.  Thing is, having to use the rescue tools if it fails is a bit of
> a pain.  Also, I need to let my hair regrow a bit.  ;-)

Take a look at this page to make sure you don't remove some GRUB file needed 
for a boot:

https://wiki.gentoo.org/wiki/GRUB2_Migration

There are other GRUB related pages in the wiki to help with configuring GRUB2.

BTW, you don't need the old legacy GRUB as a fall back to boot your system.  
You can use a LiveCD/DVD/USB and you can configure your GRUB2 to boot this 
from your /boot, or some rescue partition on disk.  Of course, if GRUB or your 
/boot fs/partition is borked, then a LiveUSB is always handy.  ;-)

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to