Can not reinstall the GRUB Dual boot Windows 10 / Manjaro

Hello,
I just made a Win10 / Manjaro dualboot and I can not reinstall the GRUB.
I had already done several manipulations with Seven but that's not it.
I can start on my Manjaro partition with the bootloader detection option of the live cd Manjaro 18.
But here I am stuck.

  • What partition table are you using ─ GPT or MBR?
  • How many partitions do you have and what are their designations?
  • Does your machine boot in UEFI mode or in CSM (legacy BIOS) mode?

Thread moved from #technical-issues-and-assistance:kernel to #technical-issues-and-assistance, because this is not a kernel issue.

If it can help you :

[jb-pc jb]# parted -l
Modèle: ATA ST3500418AS (scsi)
Disque /dev/sda : 500GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos
Disk Flags: 

Numéro  Début   Fin    Taille  Type     Système de fichiers  Fanions
 1      1049kB  500GB  500GB   primary  ntfs


Modèle: ATA WDC WD10EARS-22Y (scsi)
Disque /dev/sdb : 1000GB
Taille des secteurs (logiques/physiques): 512B/4096B
Table de partitions : msdos
Disk Flags: 

Numéro  Début   Fin     Taille  Type     Système de fichiers  Fanions
 1      1049kB  1000GB  1000GB  primary  ntfs                 démarrage


Modèle: Generic Mass-Storage (scsi)
Disque /dev/sdc : 31,3GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : msdos
Disk Flags: 

Numéro  Début   Fin     Taille  Type     Système de fichiers  Fanions
 2      2096MB  2100MB  4194kB  primary                       esp


Modèle: Inconnu (unknown)
Disque /dev/nvme0n1 : 250GB
Taille des secteurs (logiques/physiques): 512B/512B
Table de partitions : gpt
Disk Flags: 

Numéro  Début   Fin    Taille  Système de fichiers  Nom                           Fanions
 1      1049kB  556MB  555MB   ntfs                 Basic data partition          caché, diag
 2      556MB   661MB  105MB   fat32                EFI system partition          démarrage, esp
 3      661MB   677MB  16,8MB                       Microsoft reserved partition  msftres
 4      677MB   124GB  124GB   ntfs                 Basic data partition          msftdata
 5      124GB   250GB  126GB   ext4

GPT apparently
Bios UEFI

You have two storage devices with an ESP, but both of your ESPs are too small. Maybe this post below, which I have just typed in reply to someone else, may help you... :thinking:

See this post
Provide info as indicated there.

efibootmgr -v
sudo parted -l
sudo blkid
findmnt -s
findmnt /boot/efi

okay, have parted -l, provide the rest.

1 Like
[jb@jb-pc ~]$ efibootmgr -v
BootCurrent: 0009
Timeout: 2 seconds
BootOrder: 0009,0000,0006,0008,0001,0002,0007
Boot0000* Windows Boot Manager  HD(2,GPT,59f965c4-9faf-49d7-988a-21396cf0ff71,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.}...o................
Boot0001* Hard Drive    BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)..GO..NO..........S.T.3.5.0.0.4.1.8.A.S...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .V.9.V.M.S.P.H.B........BO..NO..........W.D.C. .W.D.1.0.E.A.R.S.-.2.2.Y.5.B.1...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . .W. .-.D.C.W.V.A.D.5.7.5.0.8.8.9........BO..NO..........K.I.N.G.S.T.O.N. .S.K.C.2.0.0.0.M.8.2.5.0.G...................\.,.@.r.d.=.X..........A...........................&.(#........6..Gd-.;.A..MQ..L.5.0.0.2.6.B.7.2.8.2.3.C.7.0.2.B........BO
Boot0002* CD/DVD Drive  BBS(CDROM,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0300)..GO..NO..........A.S.U.S. . . . .B.W.-.1.6.D.1.H.T...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L.E.K.I.N.H.7.0.I.5.9. .0. . . . . . . . ........BO
Boot0006* manjaro       HD(2,GPT,59f965c4-9faf-49d7-988a-21396cf0ff71,0x109000,0x32000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0007* USB KEY       BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0b00)..GO..NO..........G.e.n.e.r.i.c. .M.a.s.s.-.S.t.o.r.a.g.e. .1...1.1...................\.,.@.r.d.=.X..........A.............................H..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .M.a.s.s.-.S.t.o.r.a.g.e. .1...1.1........BO
Boot0008* UEFI: Generic Mass-Storage 1.11       PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(4,0)/CDROM(1,0x3e78a0,0x8000)..BO
Boot0009* UEFI: Generic Mass-Storage 1.11, Partition 2  PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(4,0)/HD(2,MBR,0x0,0x3e78a0,0x2000)..BO
[jb@jb-pc ~]$ sudo blkid
/dev/nvme0n1p1: LABEL="RM-CM-)cupM-CM-)ration" UUID="721253C312538ACD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="71dd3eac-4bea-4e48-87b9-d7ccffc74b43"
/dev/nvme0n1p2: UUID="6254-9985" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="59f965c4-9faf-49d7-988a-21396cf0ff71"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="48670afe-8c62-41c0-bd79-ddfeb811e881"
/dev/nvme0n1p4: UUID="90A457A0A457881C" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="52f0b23b-3d6d-4bcf-9d19-8460e706df94"
/dev/nvme0n1p5: UUID="1247948a-d670-4e2c-957d-f0e39f1f4fca" TYPE="ext4" PARTUUID="e74537e8-cfc6-4ec8-a08e-b1baadf81d52"
/dev/sda1: UUID="62293E51788A7090" TYPE="ntfs" PTTYPE="dos" PARTUUID="e907e907-01"
/dev/sdb1: LABEL="Stockage" UUID="5C1E7ABD1E7A902E" TYPE="ntfs" PTTYPE="atari" PARTUUID="f1d57149-01"
/dev/sdc1: UUID="2019-03-12-09-50-33-00" LABEL="M1804" TYPE="iso9660"
/dev/sdc2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="F464-EFAB" TYPE="vfat"

[jb@jb-pc ~]$ findmnt -s
TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=6254-9985                            vfat   defaults,noatime
/         UUID=1247948a-d670-4e2c-957d-f0e39f1f4fca ext4   defaults,noatime

[jb@jb-pc ~]$ findmnt /boot/efi
TARGET    SOURCE         FSTYPE OPTIONS
/boot/efi /dev/nvme0n1p2 vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

Good, refer to the link again. Boot up your way and do the commands. Don't forget the 2 UEFI additional commands as well. You should be okay.

PS : logging off. Sleep time.log on after 8 hours later. Good luck.

1 Like

nothing worked...

Assuming efibootmgr -v output remains as your previous post (verify), use this

sudo efibootmgr -o 0006, 0000, 0008, 0009
1 Like

Do again.
This time print out your command ( as it happen) together with the output.

Typo and syntax is important. You may have typed in error.

Confirm also you had manjaro working before.

1 Like

It has changed

[jb@jb-pc ~]$ efibootmgr -v
BootCurrent: 000B
Timeout: 2 seconds
BootOrder: 000B,0000,0008,000A,0001,0002,0009
Boot0000* Windows Boot Manager  HD(2,GPT,59f965c4-9faf-49d7-988a-21396cf0ff71,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.}...o................
Boot0001* Hard Drive    BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)..GO..NO..........S.T.3.5.0.0.4.1.8.A.S...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .V.9.V.M.S.P.H.B........BO..NO..........W.D.C. .W.D.1.0.E.A.R.S.-.2.2.Y.5.B.1...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L. . . . .W. .-.D.C.W.V.A.D.5.7.5.0.8.8.9........BO..NO..........K.I.N.G.S.T.O.N. .S.K.C.2.0.0.0.M.8.2.5.0.G...................\.,.@.r.d.=.X..........A...........................&.(#........6..Gd-.;.A..MQ..L.5.0.0.2.6.B.7.2.8.2.3.C.7.0.2.B........BO
Boot0002* CD/DVD Drive  BBS(CDROM,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0300)..GO..NO..........A.S.U.S. . . . .B.W.-.1.6.D.1.H.T...................\.,.@.r.d.=.X..........A.................................>..Gd-.;.A..MQ..L.E.K.I.N.H.7.0.I.5.9. .0. . . . . . . . ........BO
Boot0008* manjaro       HD(2,GPT,59f965c4-9faf-49d7-988a-21396cf0ff71,0x109000,0x32000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0009* USB KEY       BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0b00)..GO..NO..........G.e.n.e.r.i.c. .M.a.s.s.-.S.t.o.r.a.g.e. .1...1.1...................\.,.@.r.d.=.X..........A.............................H..Gd-.;.A..MQ..L.G.e.n.e.r.i.c. .M.a.s.s.-.S.t.o.r.a.g.e. .1...1.1........BO
Boot000A* UEFI: Generic Mass-Storage 1.11       PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(5,0)/CDROM(1,0x3e78a0,0x8000)..BO
Boot000B* UEFI: Generic Mass-Storage 1.11, Partition 2  PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(5,0)/HD(2,MBR,0x0,0x3e78a0,0x2000)..BO

Is your issue solved? Manjaro is not UEFI 1st option, it's Windows. Unless that's what you want...

Anyway, you can use efibootmgr to change order how you like.

1 Like

No, the problem is not solved, I meant that the command gives another result.

Provide

pacman -Q efivar
pacman -Q efibootmgr

Oops, wrong topic.
Ignore above.

But do the following..

verify proper OrderIDs and issue proper parameters.
It is your responsibility. Read efibootmgr --help.

Post the commands and output you used.
If you do it correctly and fails, @gohlip will guide you how to fix it.

Uhm... efibootmgr -o xxx,yyyy,zzzz
If OP does grub-install, that will automatically be at top of efibootmgr list;
don't need to 'efibootmgr -o .......'
OP may have problem not to have it as top and default of bootorder if he has a microsoft tied in system like some lenovo, and some other models. But if does not have this problem in the past (that's why I ask OP to confirm if he had mwnajro working well before. If he had it working well before, he don't have a microsoft tied-in system. But if he just tried to install manjaro and he is haveing problem, it could be he have a microsoft tied in system. And we can still do something about it. But he's not saying or providing output.
So over to you petsam. Have fun.

1 Like

It still does not work.

[jb@jb-pc ~]$ sudo grub-install /dev/sda
[sudo] Mot de passe de jb : 
Installation pour la plate-forme x86_64-efi.
Installation terminée, sans erreur.
[jb@jb-pc ~]$ sudo update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.2-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.2-x86_64.img
Found initrd fallback image: /boot/initramfs-5.2-x86_64-fallback.img
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
grub-probe : erreur : impossible de trouver un périphérique GRUB pour /dev/sdc1. Vérifiez device.map..
grub-probe : erreur : impossible de trouver un périphérique GRUB pour /dev/sdc1. Vérifiez device.map..
Found Windows Boot Manager on /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi
done
grub> echo $grub_platform
efi
grub> searchfile /etc/manjaro-release root
grub> probe -u $root --set=abc
grub> ls ($root)/boot/
efi/ grub/ memtest86+/ linux419-x86_64.kver amd-ucode.img vmlinuz-4.19-x86_64
initramfs-4.19-x86_64.img linux52-x86_64.kver initramfs-4.19-x86_64-fallback.img vmlinuz-5.2-x86_64
initramfs-5.2-x86_64.img initramfs-5.2-x86_64-fallback.img
grub> linux /boot/vmlinuz-5.2-x86_64 root=UUID=$abc rw
grub> initrd /boot/initramfs-5.2-x86_64.img

efi/ grub/ memtest86+/ ???

no one to help me?

Well, do you?

I also guess you have a Lenovo, which model?

You missed out this last line?

grub> boot

And your grub-probe error, says

Can you pull out the install usb (sdc) after you booted into manjaro and before doing the commands?

And you need to do the 2 [Additional UEFI commands]. Do that and show us.

Sorry but I translate with google and I do not understand everything ....

As I said in the first message, I just built a new pc, so the dualboot never worked. But manjaro works well and starts with the search of the bootloader of live cd on usb key.

This is a desktop computer mounted from A to Z.

no i have not forgotten

Forum kindly sponsored by Bytemark