Re: machine will not boot after moving root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The grub rescue mode finds only (hd0), no paritions at all.

On Fri, 23 Apr 2021, Roger Heflin wrote:

if you are doing the grub-install/grub2-mkconfig from inside the
chroot then it should find the correct uuid (if it works like it
should).

I did stuff in the chroot, but apparently not well.

any of the test commands for grub need to be in the chroot otherwise
they will think they are the livecd and not do the right thing or show
the right thing as they will attempt to setup/look at install for
current booted image.

Did you check to see if the uuid listed in /boot/grub2/grub.cfg root
uuids (sda3 that contains the /boot directory) matches what tune2fs -l
/dev/sda3 's uuid?

I do not understand grub2 configuration files.
sda3/boot/grub2/grub.cfg contains references both to
sda3 and to the Anaconda file system from the F33 live DVD.
I'm running a live Centos 7 right now.

Since you are booting from a partition that uuid may also be on the
kernel boot line(s)  similar to root=<XXXX> and that will also need to
be sda3's uuid.

It may also be in grubenv rather than directly on the boot lines.

The biggest change you seem to have made is changing the
boot/rootfs'es uuid and grub seems to stick that in multiple places in
its config files and on the kernel boot lines (in addition to the the
fstab you knew about).   And it does not appear that grub expects the
uuid to ever change and so nothing outside of the grub2-mkconfig
command redoes that, it it still may not rewrite to root= line on the
kernelopts line.

--
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                             --  someeecards
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux