[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Drops to command prompt; configfile /grub2/grub.cfg needed to boot
From: |
Brian J. Murrell |
Subject: |
Re: Drops to command prompt; configfile /grub2/grub.cfg needed to boot |
Date: |
Thu, 25 Jul 2024 22:38:54 -0400 |
User-agent: |
Evolution 3.52.3 (3.52.3-1.fc40) |
On Thu, 2024-07-25 at 08:54 +0200, Pascal Hambourg wrote:
>
> Then run "grub2-mkconfig > /boot/grub/grub.cfg".
Indeed. If there were any differences that I had not already edited to
account for and the result of grub2-mkconfig were not *exactly* what is
already in the file.
> Even the UUIDs ?
Yes. I copied the filesystem byte-for-byte, (i.e. dd if=/dev/sda5
of=/dev/sda7; followed by resizing the filesystem on /dev/sda7), not
just the files in it. I then changed the UUID of the filesystem on
/dev/sda5.
>
> Too bad.
Indeed.
> You could put /boot in LVM
I used to be a fan of that in fact. I think I finally gave up fighting
distro installers that refused to allow you to do that due to the
distros' fears of /boot in LVM. I think I recall that also became
problematic when the LV became fragmented due to extending it without
space on the disk being available directly subsequent to it.
> So just check if the /boot partition number changed after
> any
> other partition change.
That's an interesting tidbit. I don't think I have ever witnessed this
renumbering of extended partitions personally. Not saying it doesn't
happen. I have just never experienced it myself. I do tend to stay
the hell away from partitioning though and only use it to the extent
that I need to bootstrap LVM onto a machine. Indeed on every disk
other than the boot disk, the entire disk, with no partitions on it is
an LVM PV.
Cheers and thanks for all of your help. I have my machine booting
without trouble now.
b.
Re: Drops to command prompt; configfile /grub2/grub.cfg needed to boot, Pascal Hambourg, 2024/07/24