I have a Yoga720-15IKB laptop running Windows 10. I wanted to dual boot Ubuntu 22.04 and Windows, so I shrank my C: drive (the only main partition at the moment) on the only drive (an SSD) in the laptop, and created 2 more partitions using the free space. One was for installing Ubuntu and the other was like a shared space for storage for both operating systems.
During the Ubuntu installation, I selected Something else, and reformatted the partition I wanted to install to, then installed Ubuntu to that partition. Now I could boot into both Windows and Ubuntu without any issue, but the partitions were not right.
Windows Disk Management:

It only shows my C: drive but with a red cross, and it doesn't show any other partition info and I can't do any disk operation here. (There shouldn't be an issue with Windows Disk Management because it can show any external drive correctly).
Then I tried to fix this with a Windows recovery USB drive. I loaded the recovery environment and tried diskpart
. When I ran list disk
I saw this:

It only showed my USB drive as disk 1, but can't see my internal SSD (normally disk 0). Then I tried sel disk 0
anyway and it was still able to select my SSD somehow. Then I did list partition
and I saw this.

This time it seems to be showing the partitions correctly unless I missed something, but I still don't know how to fix it or even what caused this. I think I also tried the auto "Startup Repair" and the fixmbr
command in the recovery environment, but I had no luck.
I even tried to reinstall Windows, but during the installation when I needed to select the drive/partition to install Windows, the installer couldn't find any drive, like this.

Does anyone know what this issue is and how to fix it? It would be better if I can fix it without reinstalling either operating system or even reformatting.