I just recently tried to dual boot a new Legion 7i that I purchased: https://www.lenovo.com/us/en/p/laptops/legion-laptops/legion-7-series/legion-7i-gen-6-(16%E2%80%B3-intel)/82k6005sus?orgRef=https%253A%252F%252Faccount.lenovo.com%252F.
I basically shrank the pre-installed windows partition.
Created a EFI boot partition and a root partition because when I tried doing the installation with the "something else" option the Ubuntu installer complained it could not find an EFI partition. The "Install Ubuntu Alongside Windows" option never appeared in the installer.
Installed Ubuntu 20.04 on the newly created partition
It seems this broke my Windows partition because I could no longer see it in the BIOS and it didn't show on the grub loader even if I tried to do a grub repair. I tried to also recover the windows partition by creating an bootable windows disk but it can't even find the original partition anymore. I ended up doing a factory reset of the laptop using the Lenovo USB Recovery key and started over again. I searched around a bit I there were some suggestions so I did the following:
Turned off secure boot in the bios and turned off fastboot in Windows.
Created a free partition in windows: https://imgur.com/a/Zfe9X60
Tried normal install again: https://imgur.com/3LrxTQr
Install alongside windows doesn't show again so I choose do "something else" because: https://imgur.com/Ksf0qNJ
These are the partitions provided to me again: https://imgur.com/QV5LgVC
At this point I'm sort of a loss on what to do so any advice would be much appreciated. Not sure if it has to do with the being nvme devices because I only have had experience in the past with sda devices. Thanks for reading!
Edit This is the output for sudo parted -l
Error: Invalid argument during seek for read on /dev/nvme0n1
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Model: SAMSUNG MZVL21T0HCLR-00BL2 (nvme) Disk
/dev/nvme0n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown Disk
Flags:
Error: /dev/nvme1n1: unrecognised disk label
Model: SAMSUNG MZVL21T0HCLR-00BL2 (nvme)
Disk /dev/nvme1n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: