Ubuntu Version: 22.04 LTS
Problem Description/Relevant System Information:
For context, I have had Ubuntu 22.04 dual-booted with Windows for a while (partitioned on the same drive), and then Windows gave me the screen where I needed to enter a Bitlocker recovery key, so I’ve been working in Ubuntu instead. However, the other day, I decided to try changing some BIOS settings to see if I could undo what led to Bitlocker activating, but instead I ended up accidentally removing Ubuntu from the Boot Manager; it is showing up as an option under my BIOS settings boot order list, and there is no longer a grub boot menu displaying. I want to regain my ability to access Ubuntu without losing any of my files if at all possible.
Screenshots or Error Messages:
Here’s my PasteBin from the Boot Repair tool: https://paste.ubuntu.com/p/4J8ZxStGy8/. Additionally, here’s my PasteBin from after running the recommended repair: https://paste.ubuntu.com/p/wGcqKGwZ89/I also got a message from Boot Repair that says “Locked-NVram detected. Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.5 LTS entry (nvme0n1p1/efi/ubuntu/grubx64.efi file) !”
If it is helpful, here is what is displayed when I type sudo efibootmgr -v into the Terminal (Ubuntu does not show up in efibootmgr): Ubuntu Pastebin. Also, here is the information I get when I enter sudo fdisk -l into the Terminal: Ubuntu Pastebin. (I am running a Try Ubuntu session from a bootable Ubuntu live USB to access the Terminal.)
What I’ve Tried:
- I have already tried going into BIOS to view boot options, and Ubuntu does not appear there either.
- I have ensured the Lock UEFI BIOS Settings, Secure Boot, OS Optimized Defaults, Device Guard, and Boot Order Lock are all disabled in BIOS.
- I have switched from Quick Boot to Diagnostics Boot in BIOS.
- I am doing UEFI Boot Only instead of any Legacy booting.
- I have run both the commands
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efiandbcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi.