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://i.stack.imgur.com/HCBuQ.jpg
Tried normal install again: https://i.stack.imgur.com/r5x5o.jpg
Install alongside windows doesn't show again so I choose do "something else" because: https://i.stack.imgur.com/HJwOh.jpg
These are the partitions provided to me again: https://i.stack.imgur.com/0kAG2.jpg
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:
sudo parted -l
You need to update UEFI, update SSD firmware and use latest Ubuntu version as very new hardware. You also need "Safe Boot" for nVidia and install nVidia driver as part of install. https://help.ubuntu.com/community/UEFI Shows Windows screens https://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-windows-10-with-uefi Check if you also have a Security setting preventing install. You should only have one ESP per drive. Windows & Ubuntu will normally share that with different folders. – oldfred Nov 27 '21 at 04:43sudo 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)
– Bill W Nov 27 '21 at 05:39Disk /dev/nvme1n1: 1024GB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags:
sudo apt install nvme-cli
and runsudo nvme -list
It will show model & FW revision. Then check if newer FirmWare is available: https://www.samsung.com/semiconductor/minisite/ssd/download/tools/ I downloaded ISO and booted to update my Samsung NVMe drive. Repair gpt: http://askubuntu.com/questions/386752/fixing-corrupt-backup-gpt-table/386802#386802 But it looks like you erased drive. – oldfred Nov 27 '21 at 15:57