A series of unfortunate events(i.e. avoidable decisions) occurred today. (to skip, find ===)
I wanted to enable XMP for my motherboard to get better performance out of my RAM. However I couldn’t find the Load XMP Profile option in my BIOS settings. I then decided that I should try to update the BIOS as I never updated it since 2017 when I purchased this computer. Put the flash file on a vfat32 USB plugged it in and … the flash option said there was no device. I then made the misguided decision to disable a Legacy USB option to see if that was the issue… it in fact was not.
I then had the pleasure of discovering that none of my USB peripherals work during the boot process. I disconnected the single SSD to force it to get into the BIOS settings. It worked, but alas my peripherals remain dormant. My last option was to remove the CMOS to default the BIOS settings, reconnect the GPU, reattach the SATA cable for my SSD, and move on with my day … defeated. I did just that and was delighted to find out that after redoing the settings, my drive was no longer in the boot order settings of my BIOS. Only the ghost entries of distro-hoppings past (Ubuntu, ElementaryOS, and one labeled grub… i think it was arch?). I thought I may have shorted the SATA port and tried all 6 ports present on my motherboard to no avail. I tried the ghost entries to see if the entry somehow got renamed. It didnt… And that brings us to now…
TL;DR: I messed around with the BIOS and found out.
===
Partition Layout:
/dev/sda
| /dev/sda1 swap
| /dev/sda2 /home
| /dev/sda3 (/boot or /boot/efi not sure...) [contents are the initramfs images and /grub if that helps]
| /dev/sda4 /
I tried to chroot back into my drive and do a grub-install with an archiso usb. I received an error along the lines of cannot find /boot/efi (is /dev mounted?)
I believe the error is caused by my manual partitioning during the install process according to this EndeavourOS article.
How do I get my beloved boot entry back and ideally how do I clean up the ghost boot entries?
I was not able to update the BIOS.
It is an IBuyPower PC. I cant remember where I read it but there was talk of IBuyPower modding the BIOS and the only way to update it was with Intel FTP?
MB: ASROCK B250M Pro4-IB
The system can boot to new things like a live USB but otherwise I cannot figure out how to get the boot entry on /dev/sda back.
This PC is a spare desktop I had repurposed as a work computer and I have went home for the night. I will get the output of the command for you as soon as I get back to my office tomorrow morning (EST). Sorry for the inconvenience.
@Dihedric
I did look at the manual for this board. You have to go into advanced in the Bios. Then go into OC Tweaker and you will find the XMP settings to load.
Edit: You should have no issue updating the bios. You just have to download the file to a usb that is fat32. Boot into the UEFI Bios and use instant flash.
That option for “Load XMP Setting” does not exist under “DRAM Timing configuration” as in the manual.
I did do just that I use mkfs.vfat -F 32 on the USB. I extracted the file from the zip and put it on the USB. I clicked instant flash and it said no file found.
I’m not sure what you are seeing on the screen. But when you click instant flash it should show the file or the directory the file is in on the usb drive if it was extracted and resides inside a folder. You then have to click on the folder to open it so it finds it.
Hmm. I had the extracted file in the root of the USB. That may be the issue. I’ll send a screen capture of the BIOS without the XMP setting mentioned earlier after I get my boot option back.
I did not realize I have done a strange install. IIRC I just did manual partitioning with the EndeavourOS installer. This drive was used as a backup before and was cloned use some free version of Acronis when I still had windows on this machine. Maybe that is how this got so messed up.
Is there a way to get it back to a UEFI mode on a GPT disk without reinstalling?
Most probably you had booted up your live usb in legacy/bios mode.
The installer detecting the GPT disk, must have asked you to create an unformatted partition flagged as bios_grub. That would be your /dev/sda5 as see in the output of parted -l.
Enabling CSM mode worked I have been able to boot back into my machine. However I am left with a few questions. This CSM mode was disabled before, why do I need it now. If I do a grub-install will things go back to normal?