Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Removing or renaming old /boot/grub directory warning
Date: Sat, 05 Feb 2022 09:36:57
Message-Id: 7b0845b3-46fe-dbf0-87c5-5a713fcf1059@gmail.com
In Reply to: Re: [gentoo-user] Removing or renaming old /boot/grub directory warning by Michael
1 Michael wrote:
2 > On Saturday, 5 February 2022 08:37:48 GMT Dale wrote:
3 >> Arve Barsnes wrote:
4 >>> On Sat, 5 Feb 2022 at 07:37, Dale <rdalek1967@×××××.com> wrote:
5 >>>> Should I reinstall grub after removing the old directory so it puts
6 >>>> things where it needs to be or what? Or does a new install have that
7 >>>> old directory too? While at it, is there something that can give me
8 >>>> better options in cases like this or do I need to stop renaming stuff?
9 >>> For what it's worth, this machine is new enough to only ever having
10 >>> had grub2 on it, and the directory in /boot is still named /boot/grub
11 >>>
12 >>> Regards,
13 >>> Arve
14 >> I have a grub, old from original install, and grub2, that was added when
15 >> I switched to the new grub. I would have thought the old directory was
16 >> no longer needed but it appears it is for some reason.
17 > You don't provide enough information about your /boot, fs layout, etc., so it
18 > is difficult to know why the new GRUB2 failed to work. As a rule of thumb, if
19 > GRUB2 had worked before the likely problem is file corruption, or forgetting
20 > to run grub-mkconfig after you made and copied over your new kernel and initrd
21 > - it depends on what the message was when it failed to boot and what file it
22 > couldn't find.
23 >
24 > I'd run fsck on the /boot partition to make sure there is no fs corruption and
25 > hdparm on the disk would be advisable too.
26 >
27
28 It failed with a missing normal.mod file.  That file is in the old grub
29 directory.  Once I renamed the directory back to what grub expected, the
30 system loaded grub fine.  There's been other threads about kernel boot
31 problems and the one I recently built could be having one of those
32 problems.  I haven't looked into that.  I doubt there is any file system
33 problem.  The problem was me renaming a directory that grub still needs
34 files from.  There is likely a way around this but my post was to warn
35 others that renaming that directory could cause problems. 
36
37
38 >> I've reinstalled
39 >> using the grub-mkconfig command but have not reinstalled using the
40 >> grub-install command. I'm tempted to rename the old directory, install
41 >> like I would from a fresh new install, MBR and all, then see if it
42 >> boots. Thing is, having to use the rescue tools if it fails is a bit of
43 >> a pain. Also, I need to let my hair regrow a bit. ;-)
44 > Take a look at this page to make sure you don't remove some GRUB file needed
45 > for a boot:
46 >
47 > https://wiki.gentoo.org/wiki/GRUB2_Migration
48 >
49 > There are other GRUB related pages in the wiki to help with configuring GRUB2.
50 >
51 > BTW, you don't need the old legacy GRUB as a fall back to boot your system.
52 > You can use a LiveCD/DVD/USB and you can configure your GRUB2 to boot this
53 > from your /boot, or some rescue partition on disk. Of course, if GRUB or your
54 > /boot fs/partition is borked, then a LiveUSB is always handy. ;-)
55
56
57 That's the page I followed way back when I switched.  It worked fine and
58 was nice to have it chainload which gives one a backup boot method. 
59
60 I don't have the old grub installed, just a directory that was installed
61 by the old grub but contains files that the new grub needs.  The file
62 and path it needs is this:  /boot/grub/i386-pc/normal.mod  Why that
63 isn't installed in the new grub directory and told to look there for it,
64 I have no idea at the moment.  I may test it one day but don't feel the
65 desire to try it today. 
66
67 Dale
68
69 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Removing or renaming old /boot/grub directory warning Michael <confabulate@××××××××.com>