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?
On Sat, 5 Feb 2022 at 07:37, Dale <rdalek1967@gmail.com> wrote:
Should I reinstall grub after removing the old directory so it putsFor what it's worth, this machine is new enough to only ever having
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?
had grub2 on it, and the directory in /boot is still named /boot/grub
Regards,
Arve
On Saturday, 5 February 2022 08:37:48 GMT Dale wrote:
Arve Barsnes wrote: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
On Sat, 5 Feb 2022 at 07:37, Dale <rdalek1967@gmail.com> wrote:I have a grub, old from original install, and grub2, that was added when
Should I reinstall grub after removing the old directory so it putsFor what it's worth, this machine is new enough to only ever having
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?
had grub2 on it, and the directory in /boot is still named /boot/grub
Regards,
Arve
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.
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 reinstalledTake a look at this page to make sure you don't remove some GRUB file needed for a boot:
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. ;-)
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. ;-)
Arve Barsnes wrote:
On Sat, 5 Feb 2022 at 07:37, Dale <rdalek1967@gmail.com> 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.
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. ;-)
It failed with a missing normal.mod file. That file is in the old grub directory. Once I renamed the directory back to what grub expected, the system loaded grub fine.
There's been other threads about kernel boot
problems and the one I recently built could be having one of those
problems. I haven't looked into that. I doubt there is any file system problem. The problem was me renaming a directory that grub still needs
files from. There is likely a way around this but my post was to warn
others that renaming that directory could cause problems.
I've reinstalled
using the grub-mkconfig command but have not reinstalled using the
grub-install command.
I don't have the old grub installed, just a directory that was installed
by the old grub but contains files that the new grub needs.
The file
and path it needs is this: /boot/grub/i386-pc/normal.mod Why that
isn't installed in the new grub directory and told to look there for it,
I have no idea at the moment. I may test it one day but don't feel the desire to try it today.
On Saturday, 5 February 2022 09:36:44 GMT Dale wrote:
It failed with a missing normal.mod file. That file is in the old grubAhh! The normal.mod command:
directory. Once I renamed the directory back to what grub expected, the
system loaded grub fine.
http://www.gnu.org/software/grub/manual/grub/html_node/normal.html
You won't get a boot menu without this file, or a lot of GRUB commands. However, in a GRUB2 installation this file is found here:
# find/boot/ -name normal.mod
/boot/grub/i386-pc/normal.mod
It should not exist the old legacy filesystem. :-/
I wonder if you have somehow mixed the legacy and new GRUB2 files?
Anyway, the solution is to go fishing for it from the GRUB rescue prompt, using
the ls command and then set root and set prefix before you can insmode it.
On Saturday, 5 February 2022 09:36:44 GMT Dale wrote:
It failed with a missing normal.mod file. That file is in the old grubAhh! The normal.mod command:
directory. Once I renamed the directory back to what grub expected, the
system loaded grub fine.
http://www.gnu.org/software/grub/manual/grub/html_node/normal.html
You won't get a boot menu without this file, or a lot of GRUB commands. However, in a GRUB2 installation this file is found here:
# find /boot/ -name normal.mod
/boot/grub/i386-pc/normal.mod
It should not exist the old legacy filesystem. :-/
I wonder if you have somehow mixed the legacy and new GRUB2 files?
Anyway, the solution is to go fishing for it from the GRUB rescue prompt, using
the ls command and then set root and set prefix before you can insmode it.
There's been other threads about kernel bootRight, renaming should be done carefully as you could mix the legacy and GRUB2
problems and the one I recently built could be having one of those
problems. I haven't looked into that. I doubt there is any file system
problem. The problem was me renaming a directory that grub still needs
files from. There is likely a way around this but my post was to warn
others that renaming that directory could cause problems.
filesystems.
Right, the 'grub-mkconfig' command only generates a new grub.cfg file and overwrites the old one. It does not *install* GRUB, whereby install involves dropping GRUB's bootloader code in the MBR and also copying all GRUB files intoI've reinstalled
using the grub-mkconfig command but have not reinstalled using the
grub-install command.
/boot.
TBH, once GRUB2 is installed properly and it works, it tends to carry on doing
so. So the question remains, why did it barf at its normal.mod path ...
[snip ...]
I don't have the old grub installed, just a directory that was installedHmm ... that should not be the case. The legacy and GRUB2 filesystems are different.
by the old grub but contains files that the new grub needs.
The fileLife's a mystery! :-)
and path it needs is this: /boot/grub/i386-pc/normal.mod Why that
isn't installed in the new grub directory and told to look there for it,
I have no idea at the moment. I may test it one day but don't feel the
desire to try it today.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (0 / 16) |
Uptime: | 96:17:37 |
Calls: | 6,764 |
Calls today: | 2 |
Files: | 12,295 |
Messages: | 5,376,361 |
Posted today: | 1 |