Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2254  / 1 Year ago, thu, january 26, 2023, 8:40:38

I will begin with a description of the steps I took to install ubuntu.


My computer is an HP Spectre x360, from early 2020.


I attempted to install ubuntu on the same hard drive as windows 10.
I created a partition in my C: drive.


Installation seemed to be fine but when it prompted me to remove the drive that I installed ubuntu from upon reboot my device went straight to windows.


Upon further investigation:
Fast boot was turned off.
Secure boot is turned off.
Ubuntu is not added to my boot menu in UEFI.


When I check my disk from windows, it appears that the partition I made for ubuntu is unallocated. But when I boot the ubuntu installer from disk and run through the installation process again, the ubuntu installer indicates that ubuntu is installed on my machine in the appropriate partition.


Any solutions to this problem would be greatly appreciated.


Update:
I turned off intel optane as suggested and ensured that all the firmware is up to date. Tried to install ubuntu again but was met with the issue:
Executing 'grub-install /dev/nvme0n1 failed. This is a fatal error.
I rebooted into windows and in windows it said that my partition created for ubuntu was filled but ubuntu still did not appear in my boot menu, and did not appear anywhere in UEFI.


I am extremely confused and if anyone has anymore suggestions or resources it would be awesome.


More From » boot

 Answers
3

Edit: Updated answer for those searching



Try to extend the FAT32 EFI partition to 512MiB , grub has issues with small EFI partitions



If the grub2-efi is not present in UEFI , you may need to reinstall GRUB2(UEFI) , note when you booted ubuntu from usb/live media did you boot via usb [UEFI] , if not you may have installed it via mbr.


You need to launch ubuntu live and reinstall grub2-efi on /EFI partition



  • Go into gnome disks

  • Identify your disk

  • Click the play button on the EFI partition (should be FAT32 and sized ~100mb from windows install)

  • Take note of the EFI mount point (/dev/sda1 something like that)

  • Use command sudo grub-install /dev/sdX , where sdX is your EFI mount point


** Note that if you have an nvme drive it will be something like /dev/nvme0n1p1 instead of sdX , substitute accordingly



  • Use command sudo update-grub


**Important : use blkid command to check UUID of your efi partition, check if it matches the value in your /etc/fstab entry , otherwise ubuntu will not boot , You may need to update the UUID especially if you have formatted EFI partition . (Eg: sudo blkid /dev/sdX)


From :https://linuxsuperuser.com/reinstall-grub2-efi-bootloader-ubuntu/


If it doesnt work , check this https://help.ubuntu.com/community/UEFIBooting#Install_GRUB2_in_.28U.29EFI_systems


[#2087] Thursday, January 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
avilyexplor questions
Wed, Mar 2, 22, 00:57, 2 Years ago
Sat, Jul 17, 21, 06:27, 3 Years ago
Sun, Jul 11, 21, 12:48, 3 Years ago
;