0

I have two identical HDD disks both have the same size. Because my main disk had some bad sectors, I decided to move my Ubuntu 22.04 system to another newer disk. Following the advice of people on this site I copied my disk using CloneZilla in disk-to-disk mode, with rescue checked. But now when I start the new disk, I get stuck at the GRUB 2.06 command line.

Using the information from this question: Stuck at GRUB command line

I tried to find the grub folder on my system and run it through the console, but the grub folder is inaccessible as it is encrypted for some reason. The ls command gives me this: (proc) (memdisk) (lvm/vgubuntu-swap-1) (lvm/vgubuntu-root) (hd0) (hd0,gpt2) (hd0,gpt1)

When I try to ls (lvm/vgubuntu-swap-1), (hd0) and (hd0,gpt2) or (hd0,2) it tells me error: unknown filesystem

ls (hd0,gpt1) or (hd0,1) gives me an efi/ folder with ubuntu and boot in it. There is no grub in either of them.

In efi/ubuntu only the files grubx64.efi shimx64.efi mmx64.efi bootx64.cvs grub.cfg And in efi/boot the files fbx64.efi mmx64.efi mmx64.efi bkpbootx64.efi bootx64.efi I tried putting both in set prefix

ls (lvm/vgubuntu-root)/ gives a different result, it shows a normal system with dev, root, boot, home, and other folders. I know that in (lvm/vgubuntu-root)/boot there is a grub folder that can be specified in the set prefix that will work, since I checked it on the original system. But on the copy instead of letting me go deeper I get error: directory is encrypted because of which set prefix and set root for (lvm/vgubuntu-root)/root don't work (root is encrypted too). I checked them on the original disk and everything worked properly.

boot-repair doesn't give me a repair button, either on its own iso or on Ubuntu on a flash drive.

The BIOS says the disk is UEFI. Both disks are not connected at the same time and I don't have a second OS on the same disk. I can't just reinstall Ubuntu from scratch, as I have a lot of other programs on there that I've been struggling with.

UPD: Secure boot is also off.

UPD2: BootInfo summary report https://paste.ubuntu.com/p/mtvnbwJpjJ/

0 Answers0