Re: Hypothetical boot question

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

 



On Tue, Jul 2, 2024 at 10:49 AM Frank Bures <buresf@xxxxxxxxx> wrote:
> What I want is to create a USB stick with /boot and /boot/efi fs in such a
> way that it boots an existing F40 installation on a HD.

As I understand things...
- your computer will need to be told to boot off the USB drive -
either a boot option in the UEFI variables or a temporary boot-time
selection of some sort
- /boot/efi/EFI/fedora/grub.cfg on the USB drive needs to "point" to
the /boot partition on the USB drive
- /boot/grub2/grub.cfg on the USB drive needs to "point" to the drive
with the desired /boot and root partitions
- "point" is typically referencing a disk or partition by UUID

In theory as long as all the UUIDs are correct, and you have unique
UUIDs on the system, I think you should be able to do it.  I am also
assuming the existing install can be booted from UEFI.

If you are comfortable with using dd, I *think* you could dd the
existing /boot and /boot/efi to the USB stick, change the UUID of the
USB stick as needed, and then add the boot variable to UEFI.  However,
to properly test it you would also need to remove the existing /boot
and /boot/efi, so if you decide to try it *please* make sure you have
backups and know how to restore them, or do this on a system you can
afford to trash.

Care to explain what you are trying to achieve?  The USB stick would
only be useful for the existing install, and you would need the USB
stick to boot the existing install (assuming you removed any existing
/boot and/or /boot/efi from the existing install).
-- 
_______________________________________________
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, report it: https://pagure.io/fedora-infrastructure/new_issue



[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