Am 17.04.24 um 18:45 schrieb Felix Miata:
Klaus-Peter Schrage via users composed on 2024-04-17 16:48 (UTC+0200):
After many years of maintaing dual boot setups (Fedora/Windows) my
harddisk layout got a bit confusing: Linux and Windows partition were
scattered on mainly two harddisks (all gpt). I was able to free a third
harddisk (ssd) and copied the linux partitions boot, root and home over
to the new disk, where they now reside as /dev/sda1, /dev/sda2
and /dev/sda3.
I left the efi-partition on the disk /dev/sdc together with Windows 11.
As in /etc/fstab all partitions are identified by their UUID, I didn't
feel a need to adjust that file.
Trying to boot brought me to the grub command line prompt. After some
trial and error, the appropriate sequence of grub commands (set
root=..., linux ..., initrd ...) made the system boot into a fully
working Fedora 39 installation.
From there I tried to repair GRUB2, following the guidelines at
https://fedoraproject.org/wiki/GRUB_2?rd=Grub2#Updating_GRUB_2_configuration_on_UEFI_systems
namely those three steps:
# rm /boot/efi/EFI/fedora/grub.cfg
# rm /boot/grub2/grub.cfg
# dnf reinstall shim-* grub2-efi-* grub2-common
But rebooting still gets me to the dreaded grub>.
So what am I missing?
BTW, I did NOT use the grub2-install command which shoud not be used on
UEFI systems.
It seems like you're using UEFI, yet remain unaware of the efibootmgr command.
Thank you for pointing me to efibootmgr, quite new to me up to now.
I am not sure if they might be related to my problem, But I have made
some observations written down in my recent reply to Go Canes which i
quote below:
But, as Felix had proposed in his post, I dived a bit deeper into
efibootmgr (also new to me up to know), and found out that entries
point to PARTUUIDs, in my case:
FedoraHD(3,GPT,1ca6f5eb-cbea-11e9-a525-4ccc6ad8789c,0x24fc9800,0x32000)/\EFI\FEDORA\SHIM.EFI0000424f
Windows Boot Manager
HD(1,GPT,1ca6f5ea-cbea-11e9-a525-4ccc6ad8789c,0x800,0x24c60000)/\EFI\Microsoft\Boot\bootmgfw.efi0000424f
And I found, that two partitions (EFI, Windows) on my third harddisk
have the same PARUUID:
/dev/sdc1: LABEL="WIN" BLOCK_SIZE="512" UUID="A1C61D016294FB66"
TYPE="ntfs" PARTUUID="1ca6f5ea-cbea-11e9-a525-4ccc6ad8789c"
/dev/sdc3: UUID="BEAD-09C3" BLOCK_SIZE="512" TYPE="vfat"
PARTLABEL="EFI System Partition"
PARTUUID="1ca6f5eb-cbea-11e9-a525-4ccc6ad8789c"
I don't know if that really matters ...
--
_______________________________________________
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