Hello, today i got back my pc after mantainance from my local shop, they just installed a new ram pack and a new video card. Unfortunately they also updated the bios, and GRUB no longer appears ( i have a dual boot system).
I’ve tried to enable back on the bios, but i can’t find the manjaro bootloader anymore, so manjaro is unaccessible now.
Please help!
Hi @save_linux,
Sounds to me that you need to reinstall GRUB from chroot
environment.
How to chroot
-
Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.
-
Write/copy/
dd
the ISO to a USB thumb drive. -
When done, boot with the above mentioned USB thumb drive into the live environment.
-
Once booted, open a terminal and enter the following command to enter the
chroot
encironment:
manjaro-chroot -a
- If you have more than one Linux installation, select the correct one to use from the list provided.
When done, you should now be in the chroot
environment.
But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.
Reinstalling grub
from chroot
environment.
Once in the live environment, you have to reinstall GRUB. To do so, run the following:
update-grub
When successfully completed, exit the chroot
environment:
exit
Followed by rebooting and seeing if it worked.
If it did, feel free to heap on the praise. If, however, it didn’t, well, then I’m not here. (Mostly, I suspect, I’ll have to be off then.)
Hope this helps!
Yeah, i figured it out; what tool do you recommend for burning the iso on the usb (on windows)?
I gave update-grub from the live system but it didn’t work. I should give grub-install instead?
No, you shouldn’t.
Did you chroot
first? Because, that’s kind of necessary. Also check in you UEFI/BIOS that the boot order/priority is correct.
[manjaro@manjaro-cinnamon ~]$ manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda5]
→ mount: [/mnt]
→ mount: [/mnt/boot/efi]
→ mount: [/mnt/media/toshiba]
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the ‘fuser’ command.
→ mount: [/mnt/media/win]
[manjaro-cinnamon /]#
[manjaro-cinnamon /]# update-grub
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.19-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.19-x86_64.img
Found initrd fallback image: /boot/initramfs-5.19-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings …
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Looks good. Ensure your boot priority is correct in the UEFI/BIOS.
Also, since it was a BIOS upgrade, ensure that fast boot & secure boot are both disabled. And just for good measure, check in Windows as well.
Tip:
When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:
pasted text
This will just cause it to be rendered like this:
Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.
Instead of like this:
Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.
Thereby increasing legibility thus making it easier for those trying to provide assistance.
I’ve checked the bios for the manjaro bootloader, but it just disappeared completely. Fast boot and secure boot are disabled everywhere, as far i can see.
What is the output of:
efibootmgr
???
You can also use Maxi
to collect information about the boot process. This works,
- when you are in your running system (with CTRL+ALT+F2).
- And also in a live environment
Apparently,
You need to power down Windows. Opening an NTFS partition that went into hibernate will result in the error you’re received.
So, OP, make sure you’re actually shutting down your computer. This might be because of a hibernate, sleep, or something.
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0000,0005,0006,0001,0002,0003,0004
Boot0000* Windows Boot Manager HD(2,GPT,0b5a4361-52a8-4087-b597-1284c72ae6ab,0xfa000,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d0000004d000100000010000000040000007fff0400
Boot0001* Hard Drive BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)0000474f00004e4fcb000000010000008b005700440043002000570044005300320034003000470032004700300041002d00300030004a004800330030000000050109000200000000010416008b12e85cec2cf040837280640e3dc85802007fff040002010c00d041030a0000000001010600030101010600010003120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63900310036003100470039003600340031003900340031002000200020002000200020002000200000007fff04000000424f
Boot0002* CD/DVD Drive BBS(CDROM,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0300)0000474f00004e4fc5000000010000008b0041005400410050004900200020002000690048004100530031003200340020002000200046000000050109000300000000010416008b12e85cec2cf040837280640e3dc85803007fff040002010c00d041030a0000000001010600030101010600010003120a000500ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63500330034003200390037002000380046003200390038003700310030003500320034003900320000007fff04000000424f
Boot0003* USB HDD BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0900)0000474f00004e4fc3000000010000007d0054004f00530048004900420041002000450078007400650072006e0061006c002000550053004200200033002e00300030000000050109000200000000010416008b12e85cec2cf040837280640e3dc85809007fff040002010c00d041030a000000000101060001070101060003000305060006007fff040001043400ef47642dc93ba041ac194d51d01b4ce632003000310039003000330032003100300032003200300037003300460000007fff04000000424f
Boot0004* USB KEY BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0b00)0000474f00004e4fd3000000010000008f004b0069006e006700730074006f006e004400610074006100540072006100760065006c0065007200200033002e0030000000050109000200000000010416008b12e85cec2cf040837280640e3dc8580b007fff040002010c00d041030a000000000101060003010101060000000305060001007fff040001044600ef47642dc93ba041ac194d51d01b4ce645003000440035003500450041003500370034004200390046003500350030004400390034004600310034004300310000007fff04000000424f
Boot0005* UEFI: KingstonDataTraveler 3.0 PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(1,0)/CDROM(1,0x6723e4,0x8000)0000424f
Boot0006* UEFI: KingstonDataTraveler 3.0, Partition 2 PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(1,0)/HD(2,MBR,0x0,0x6723e4,0x2000)0000424f
Tip:
When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:
pasted text
This will just cause it to be rendered like this:
Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.
Instead of like this:
Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.
Thereby increasing legibility thus making it easier for those trying to provide assistance.
Please edit your post accordingly.
sorry i can’t find this bacticks.
It seems that the efi bootloader doesn’t exist anymore. How can i reinstall it?
My keyboard layout is different, i have another key below esc.
Edit : i’ve found it, i had to try altgr on every key…
Which layoout do you have?
Anyway, that looks closer to it, although it loos like possibly single quotes. Alternative to the backtics, is removing them, then selecting the text you wish to format, and clicking the </> in the toolbar.
Anyway, your efi boot loader sequence seems a bit messed up. I’m not sure about it, but you could try changing it, until you find the one that works. To do so:
- These are all options that can be ordered:
BootOrder: 0000,0005,0006,0001,0002,0003,0004
Try and change the order with:
efibootmgr --bootorder <XXXX>,<YYYY>
Where <XXXX>
and <YYYY>
are the IDs from the options that can be booted.
Try this with each of the options as the first boot option.
See if it makes a difference. I have absolutely NO idea if it will or what difference it’ll make.
Edit:
From what I can gather here, it’s something like this:
efibootmgr --bootorder Boot0003,Boot0001,Boot0000