I’ve been working on this issue for a while and have had a partial ‘fix’ but I’d like to properly fix this issue now and the problems that come with my ‘fix’.
First of all, my problem is that a while ago I had to perform a NVRAM reset, resulting in the loss of my boot entries in the BIOS, which I easily re-added for Windows and other OS’s, however I could not re add Grub effectively. I have used chroot to enter my system and reinstall the grub boot loader but when I boot the entry I receive the error from my BIOS ‘Boot media not accessible’ or another similar error - however, the disk is readable and I can view it from Windows, Linux on a USB. Therefore, I’d like to correctly reinstall Grub. I have tried reinstalling it using chroot via the command
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck. This passes successfully with no errors, but as said the boot option does not boot.
Secondly, I’d like to mention my temporary solution I have been using to boot Manjaro. It’s very hacky and does not work fully - I have to run commands from Grub Rescue on boot to enter Manjaro. I used the same command from above to install grub and copied the EFI files across to my internal HDD and used my bios file manager to add the grubx64 EFI as a boot option, which would get me past my issue of ‘Inaccessible boot device’. Once this boots I reach Grub Rescue in which I have to enter the commands:
set root=(hd0,2) set prefix=(hd0,2)/boot/grub insmod normal normal
This is as I get an unknown filesystem error - I believe this is as Grub is on an alternate drive to which it is installed and therefore I have to manually set the drive to the one containing the necessary files.
Finally, I’d like to propose some solutions I have thought of but do not have the knowhow/ have not been able to implement.
- Install grub to the internal drive correctly via
grub-install- I have tried to do this with
grub-install /dev/sda ....but the installer installs to /dev/sdb anyways.
- Chainload Manjaro through Opencore - I do not know how to add the entry to Opencore manually. I have opencore installed and it works well for managing other OS’s
- Finding a way to actually fix the issue and not work around it by installing grub and fixing the installation on /dev/sdb
Some questions I assume you may have are:
- Is the USB connection from the external HDD with Manjaro damaged:
- No, I have tried it in other USB ports and another PC and it showed up correctly
- Is your BIOS damaged (Due to the ‘Inaccessible error’):
- I believe not - as I have reinstalled the BIOS from windows and the drive has previously worked to boot from with GRUB.
Thank you all, I hope someone helps me find a solution for this <3