Re: machine will not boot after moving root

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

 



Nothing in dracut cares about what partition it is on, and grub is not
finding the initramfs.  Grub is failing to find the boot.cfg files and
vmlinuz and inittramfs.  So either you have the wrong grub being
started or the right grub but it cannot find its config files.

Are you trying to move /root or /boot or is your /boot on /root
without a separate /boot?

Did you set /dev/sda3 as bootable in whatever program you used to
partition? (if not efi).

My general plan would be to set the new partition bootable with the
partitioning program (fdisk there are options to find the option to
set bootable) (this all assumes you aren't using EFI).

liveboot it.
mount the new installs root (/)  under /mnt
mount the new install boot device under /mnt/boot
mount -o bind /dev/ /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
this allows the chroot system to access devices and other critical
resources to be able to run.

if you are efi then you would need it mounted /dev/sda1 under /mnt/boot/efi

Then chroot /mnt
and rerun the grub commands inside the chroot which should look like
the system you want to boot.

The grub commands typically rely on finding /boot so if the new boot
is not at /boot when you ran those commands then it won't work right.

On a rescue type boot the above mounting/chroot stuff allows the OS to
be fixed with the installs tools to be used which is typically best.

if this is efi then efibootmgr and/or the efi menu would have been
needed to point to the new /boot.

To further troubleshoot you probably need to provide a lot more
details about exactly you were trying and how you were trying it

And what fstab is now and what it looked like before.







On Thu, Apr 22, 2021 at 4:56 PM Joe Zeff <joe@xxxxxxx> wrote:
>
> On 4/22/21 3:46 PM, Michael Hennebry wrote:
> > What is dracut?
>
> Try using man dracut.  Man is your friend; trust man.
> _______________________________________________
> 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
_______________________________________________
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