fedora – How do I create an efi partition to nobara already installed without losing root data?

I had a laptop with a dual boot nobara and Windows each with its own disk, nobara used the windows efi partition I guess, so there’s no efi partition on the nobara disk, I mounted my desktop PC and inserted the disk with nobara without knowing that the efi partition was missing.

From a live USB of nobara I tried to create the missing efi partition with the nobara installer while maintaining the root, but it wouldn’t let me do it without formatting the root partition, so I resized it to create another nobara installation with its root and its efi, then asking what I tried to show grub (using grub 2 and chroot) the old nobara installation but to no a result.

Today I turned the PC back on, in the grub screen of the new installation I tried to select nobara linux o-rescue and now also the new installation starts in terminal without graphical interface so now I’m using the live usb.

How do I start the old Nobara installation with the EFI partition of the new one?

The old installation was with kde plasma, the new one is with gnome because it was the only island of nobara that I had and I didn’t have time to redownload the correct one, if it were possible to keep both installations it wouldn’t be bad because I tried a theme for gnome, but I absolutely need to get back access to the old installation and especially without losing the files.

These are the current partitions:

  • nvme0n1p1 – microsoft reserved partition
  • nvme0n1p2 – ext4 Boot partition of the old installation
  • nvme0n1p3 – btrfs root partition of the old installation (nobara kde plasma)
  • nvme0n1p4 – vfat FAT32 EFI partition of the new installation
  • nvme0n1p5 nvme0n1p5 – ext4 boot partition of the new installation
  • nvme0n1p6 – btrfs root partition of the new installation (nobara
    gnome)

Read more here: Source link