I was running manjaro KDE with a windows dual-boot , and after a water damage problem, i had to replace my motherboard.
After that, the first boot on manjaro did well, but after booting into windows, and restarting my computer, I could not boot into manjaro anymore, it wouldn’t show in my UEFI-boot options
Hi and welcome to the forum
That is one of the nasty “features” of M$, it most likely did a “system recovery” right?
Nothing is lost don’t worry
You will simply need to re-create the UEFI-boot entry used by the Bios, for Manjaro.
You can do that using a Live medium (USB/DVD)
The only thing you need to find-back is the bootloader used to boot your Manjaro, which is inside the ESP of your Harddisk.
The exact steps to re-create that UEFI-entry depends on your boot-loader you used.
Mod-edit: These steps could work if you used Grub
as your bootloader.
1- recheck option on boot for USB iso manjaro
- no secure boot
- no fast boot
- disks on AHCI
- no csm
- no legacy
create a profile Linux and windows in your UEFI
2 - you will have to go in chroot
with USB iso manjaro live
open a terminal
inxi -Mxa
test -d /sys/firmware/efi && echo efi || echo bios
sudo efibootmgr -v
sudo parted -l ( check UUID /boot/efi )
if all UEFI ok ,
change disk letter sdX ( X=a, b,c ,etc) and -p N (N= 1 , 2 , 3 )
if nmve , it will be nvmeX -pN
sudo manjaro-chroot -a
cat /etc/fstab ( check that UUID /boot/efi is ok )
efibootmgr -c -d /dev/sdX -p N -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"
efibootmgr -v
exit ( quit chroot )
then reboot
Okay, so after a bit of trouble on getting my laptop to boot on the key, I finaly got to test your commands, witch outputs
[manjaro@manjaro ~]$ inxi -Mxa
Machine: Type: Laptop System: HP product: HP ProBook 440 G7 v: N/A serial: <superuser/root required> Chassis: type: 10
serial: <superuser/root required>
Mobo: HP model: 869D v: KBC Version 02.2D.00 serial: <superuser/root required> UEFI: HP v: S71 Ver. 01.06.00
date: 08/02/2020
[manjaro@manjaro ~]$ test -d /sys/firmware/efi && echo efi || echo bios
efi
[manjaro@manjaro ~]$ sudo efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0006,0007,0002,0003,0001
Boot0001* Intel Corporation: Realtek PXE B01 D00 BBS(Network,Intel Corporation: Realtek PXE B01 D00,0x0)/PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/IPv4(0.0.0.00.0.0.0,0,0)......ISPH
Boot0002 USB: BBS(65535,,0x0)/PciRoot(0x0)/Pci(0x14,0x0)......ISPH
Boot0003* SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F BBS(HD,SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F,0x400)/PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,AC-E4-2E-00-0A-55-F3-CF)......ISPH
Boot0004* Wi-Fi IPV6 Network PciRoot(0x0)/Pci(0x14,0x3)/MAC(34cff6d96bba,1)/Wi-Fi(00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
Boot0005* IPV4 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.....ISPH
Boot0006* Generic Mass Storage 11A1B07E PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)N.....YM....R,Y.....ISPH
Boot0007* Windows Boot Manager HD(2,GPT,68d20e24-1153-45e6-8997-64bf6db004f3,0x109000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}........................ISPH
Boot0008* IPV6 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
[manjaro@manjaro ~]$ sudo parted -l
Model: Generic Flash Disk (scsi)
Disk /dev/sda: 31.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 3112MB 3116MB 4194kB primary esp
Model: SK hynix BC511 HFM512GDJTNI-82A0A (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 556MB 555MB ntfs Basic data partition hidden, diag
2 556MB 661MB 105MB fat32 EFI System Partition boot, esp
3 661MB 677MB 16.8MB Microsoft reserved partition msftres
4 677MB 344GB 343GB ntfs Basic data partition msftdata
5 344GB 378GB 34.4GB Basic data partition msftdata
6 378GB 512GB 134GB ext4
The last partition is the one with manjaro installed on. When I test the first command of the second set, it outputs me this :
[manjaro@manjaro ~]$ sudo manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Detected systems:
--> 0) ManjaroLinux
==> Select system to mount [0-0] :
0
==> ERROR: You can't mount 0!
I’m pretty sure thats wrong…
Let me know if I am doing something wrong here
It’s trying to chroot into the ESP on your USB-Disk.
Try these steps instead of that command:
systemd-mount /dev/nvme0n1p6 /mnt
sudo manjaro-chroot /mnt
and then use /dev/nvme0n1p2 inplace of /dev/sdX -p N in the efibootmgr
command.
Well, I tried your first command and it asks me for a password, nut none of the one I have on my computer worked …
The password on the live iso is manjaro
That password doesn’t work for me …
Can you try it with sudo
in front? (it should ask for the same password, but you never know)
It didn’t ask for a password and outputs me this
[manjaro@manjaro ~]$ sudo systemd-mount /dev/nvme0n1p6 /mnt
Started unit mnt.mount for mount point: /mnt
is it fine ?
Yes that is the expected correct feedback.
Okay so I ran successfully the rest of the commands. Just in case here the outputs :
[manjaro@manjaro ~]$ sudo manjaro-chroot /mnt
sh-5.0# efibootmgr -c -d /dev/nvme0n1p2 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0000,0006,0007,0002,0003,0001
Boot0001* Intel Corporation: Realtek PXE B01 D00
Boot0002 USB:
Boot0003* SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F
Boot0004* Wi-Fi IPV6 Network
Boot0005* IPV4 Network - Realtek PCIe GBE Family Controller
Boot0006* Generic Mass Storage 11A1B07E
Boot0007* Windows Boot Manager
Boot0008* IPV6 Network - Realtek PCIe GBE Family Controller
Boot0000* manjaro
sh-5.0# efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0000,0006,0007,0002,0003,0001
Boot0000* manjaro HD(1,GPT,12db9e9d-3025-438a-8b25-02648e6fe6f2,0x800,0x108800)/File(\EFI\Manjaro\grubx64.efi)
Boot0001* Intel Corporation: Realtek PXE B01 D00 BBS(Network,Intel Corporation: Realtek PXE B01 D00,0x0)/PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/IPv4(0.0.0.00.0.0.0,0,0)......ISPH
Boot0002 USB: BBS(65535,,0x0)/PciRoot(0x0)/Pci(0x14,0x0)......ISPH
Boot0003* SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F BBS(HD,SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F,0x400)/PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,AC-E4-2E-00-0A-55-F3-CF
)......ISPH
Boot0004* Wi-Fi IPV6 Network PciRoot(0x0)/Pci(0x14,0x3)/MAC(34cff6d96bba,1)/Wi-Fi(00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00)/IPv6([::]:<->[::]:,0
,0)N.....YM....R,Y.....ISPH
Boot0005* IPV4 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.....ISPH
Boot0006* Generic Mass Storage 11A1B07E PciRoot(0x0)/Pci(0x14,0x0)/USB(3,0)N.....YM....R,Y.....ISPH
Boot0007* Windows Boot Manager HD(2,GPT,68d20e24-1153-45e6-8997-64bf6db004f3,0x109000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.
-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}........................ISPH
Boot0008* IPV6 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
sh-5.0# exit
exit
I’m going to restart my computer and pray for it to work normally !
Well, It booted again straight into Windows and Manjaro still doesn’t appear int the boot options…
Then your boot-loader in the ESP was not \EFI\Manjaro\grubx64.efi
…
- Try to mount your ESP(
/dev/nvme0n1p2
) at/mnt/boot/efi
after you have performed that mount command i gave, with similar syntax. - Look for your boot-loader inside
/mnt/boot/efi
and subdirectories for correct filename and path (minus/mnt/boot/efi
)
Also dont forget that windoze needs to be shut down all the way.
(not its ‘hybrid sleep’ or whatever that is used by default)
disk & UUID are not the same ( compare line boot manjaro & windows )
UUID & number partition should be the same
check ( before chroot )
sudo lsblk -fs
sudo efibootmgr -v
Those commands outputs me :
[manjaro@manjaro ~]$ sudo lsblk -fs
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0 squashfs 4.0 0 100% /run/miso/sfs/
loop1 squashfs 4.0 0 100% /run/miso/sfs/
loop2 squashfs 4.0 0 100% /run/miso/sfs/
loop3 squashfs 4.0 0 100% /run/miso/sfs/
sda1 iso9660 Joliet Ext MANJARO_KDE_2011 2020-10-01-14-09-49-00
└─sda iso9660 Joliet Ext MANJARO_KDE_2011 2020-10-01-14-09-49-00 0 100% /run/miso/boot
sda2 vfat FAT12 MISO_EFI 1AFD-57C6
└─sda iso9660 Joliet Ext MANJARO_KDE_2011 2020-10-01-14-09-49-00 0 100% /run/miso/boot
nvme0n1p1 ntfs Récupération 66A8EB30A8EAFD85
└─nvme0n1
nvme0n1p2 vfat FAT32 3AEB-CFD5
└─nvme0n1
nvme0n1p3
└─nvme0n1
nvme0n1p4 ntfs C492744392743C4C
└─nvme0n1
nvme0n1p5 exfat 1.0 DAED-E00C
└─nvme0n1
nvme0n1p6 ext4 1.0 ab36f5d2-acbf-4fa5-9122-6ed3aadf980f
└─nvme0n1
[manjaro@manjaro ~]$ sudo efibootmgr -v
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0006,0007,0002,0003,0001
Boot0001* Intel Corporation: Realtek PXE B01 D00 BBS(Network,Intel Corporation: Realtek PXE B01 D00,0x0)/PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/IPv4(0.0.0.00.0.0.0,0,0)......ISPH
Boot0002 USB: BBS(65535,,0x0)/PciRoot(0x0)/Pci(0x14,0x0)......ISPH
Boot0003* SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F BBS(HD,SK hynix BC511 HFM512GDJTNI-82A0A-CY06N05801CG46I3F,0x400)/PciRoot(0x0)/Pci(0x1d,0x4)/Pci(0x0,0x0)/NVMe(0x1,AC-E4-2E-00-0A-55-F3-CF)......ISPH
Boot0004* Wi-Fi IPV6 Network PciRoot(0x0)/Pci(0x14,0x3)/MAC(34cff6d96bba,1)/Wi-Fi(00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
Boot0005* IPV4 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.....ISPH
Boot0006* Generic PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)N.....YM....R,Y.....ISPH
Boot0007* Windows Boot Manager HD(2,GPT,68d20e24-1153-45e6-8997-64bf6db004f3,0x109000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}........................ISPH
Boot0008* IPV6 Network - Realtek PCIe GBE Family Controller PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/MAC(3822e2126602,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH
I’ve run your 1. :
[manjaro@manjaro ~]$ sudo systemd-mount /dev/nvme0n1p6 /mnt
Started unit mnt.mount for mount point: /mnt
[manjaro@manjaro ~]$ sudo systemd-mount /dev/nvme0n1p2 /mnt/boot/efi
Started unit mnt-boot-efi.mount for mount point: /mnt/boot/efi
But I’m not sure how to do the second part of your reply…
That is not neccesary true, because the M$ boot-loader can be inside the ESP of the first disk, while the boot-loader for Manjaro is in the ESP of the other disk.
That last part can be done like any other directory inspection, eg. change directory into it and examine using the ls -la
command
Okay, so I’m sure that the 6th partition is the one with Manjaro installed on , I checked it with a partition manager on Windows, and I found the Manjaro boot-loader here :
[manjaro@manjaro efi]$ ls
EFI mach_kernel System 'System Volume Information'
[manjaro@manjaro efi]$ ls EFI/Manjaro/
grubx64.efi