Manjaro appears twice on grub and doesn't boot

I have been using manjaro for quite a while, but recently ran into an issue. Out of nowhere, when booting my computer, I suddenly have to instances of all Manjaro-related choices on grub. However, when I try to boot manjaro, it doesn’t work and gets stuck at the Dell logo (I have a dell xps 13).

Any known issues like this? Any possible solutions? Thanks in advance.

Can you boot into live usb and use chroot to update grub see if that works

1 Like

Just to be clear, do you mean that I should download a Manjaro .iso file onto a usb stick and use that? I also have Windows 10 installed, so maybe I could do it through that instead?

If you are dual booting windows 10 and manjaro there’s a very good chance a windows update has messed up your grub. If you install an iso on a USB stick and boot into that you can then find your grub partition and use chroot to update the grub. I’m not an expert but I’ve had to do it myself when my grub got messed up. It’s very easy to do just follow the guide on the wiki

Edit here’s the guide

https://wiki.manjaro.org/index.php?title=Restore_the_GRUB_Bootloader

boot on USB iso manjaro
open a terminal
a browser on this topic
and reports

inxi -Fxza --no-host
sudo parted -l
sudo efibootmgr -v
test -d /sys/firmware/efi && echo efi || echo bios

Results from line 1(inxi…):

System:
  Kernel: 5.6.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=se tz=UTC 
  driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 
  misobasedir=manjaro misolabel=MANJARO_GNOME_2003 quiet 
  systemd.show_status=1 apparmor=1 security=apparmor 
  Desktop: Gnome 3.36.2 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Dell product: XPS 13 9370 v: N/A serial: <filter> 
  Mobo: Dell model: 0F6P3V v: A00 serial: <filter> UEFI: Dell v: 1.12.1 
  date: 12/11/2019 
Battery:
  ID-1: BAT0 charge: 31.3 Wh condition: 43.9/52.0 Wh (84%) 
  model: LGC-LGC6.73 DELL H754V8B status: Charging 
CPU:
  Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP 
  arch: Kaby Lake family: 6 model-id: 8E (142) stepping: A (10) 
  microcode: CA L2 cache: 8192 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 32012 
  Speed: 900 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 900 2: 900 
  3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 
  Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.org 1.20.8 driver: i915 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.0.7 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.6.15-1-MANJARO 
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Bigfoot Networks Killer 1435 Wireless-AC driver: ath10k_pci 
  v: kernel port: f040 bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 505.59 GiB used: 67.55 GiB (13.4%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: PM981 NVMe 512GB 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B 
  ID-2: /dev/sda type: USB vendor: SanDisk model: Ultra USB 3.0 
  size: 28.65 GiB block size: physical: 512 B logical: 512 B 
Partition:
  ID-1: / raw size: N/A size: 11.52 GiB used: 159.4 MiB (1.4%) fs: overlay 
  source: ERR-102 
Sensors:
  System Temperatures: cpu: 43.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 248 Uptime: 16m Memory: 15.36 GiB used: 1.30 GiB (8.4%) 
  Init: systemd Compilers: gcc: N/A Shell: zsh v: 5.8 inxi: 3.0.37 

Line 2:
Model: SanDisk Ultra USB 3.0 (scsi)
Disk /dev/sda: 30.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
2 2773MB 2777MB 4194kB primary esp

Model: PM981 NVMe Samsung 512GB (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 683MB 682MB fat32 EFI system partition boot, esp
2 683MB 817MB 134MB Microsoft reserved partition msftres
3 817MB 164GB 163GB ntfs Basic data partition msftdata
8 272GB 492GB 220GB ext4
9 492GB 496GB 4295MB linux-swap(v1) swap
4 496GB 497GB 1038MB ntfs hidden, diag
5 497GB 511GB 13.9GB ntfs hidden, diag
6 511GB 512GB 1226MB ntfs hidden, diag

Line 3
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0002,0004,0000,0005
Boot0000* Windows Boot Manager HD(1,GPT,96895829-1f74-4347-9097-f7677c699407,0x800,0x145000)/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.}…
Boot0001* Linux Firmware Updater HD(7,GPT,5d5038b5-1237-4d08-bdb2-1b5490358eaf,0x2d3d6800,0xfa000)/File(\EFI\ubuntu\fwupdx64.efi)
Boot0002* Manjaro HD(1,GPT,96895829-1f74-4347-9097-f7677c699407,0x800,0x145000)/File(\EFI\Manjaro\grubx64.efi)
Boot0004* deepin HD(1,GPT,96895829-1f74-4347-9097-f7677c699407,0x800,0x145000)/File(\EFI\deepin\shimx64.efi)
Boot0005* UEFI: SanDisk, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/HD(1,MBR,0x0,0x52a0a0,0x2000)…BO

Line 4:
efi

I attemped this just now, but get lots of errors when trying to install mtools and os-prober. I am then unable to do grub-install dev/sdy

no please you have to understand that
there 2 grub-install , one for EFI and other for bios
you need one for EFI

from your USB iso manjaro
open a terminal

sudo pacman -Sy msdos os-prober
sudo manjaro-chroot -a ( type 1 if only one line appears )
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --verbose
update-grub
efibootmgr -v
exit ( end chroot )

*DO NOT FORMAT /boot/efi , there is Windows efi INSIDE ***

1 Like

When I do sudo pacman -Sy msdos os-prober I get the following:

:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.netix.net : Could not resolve host: mirrors.netix.net
error: failed retrieving file 'core.db' from mirror.tuchola-dc.pl : Could not resolve host: mirror.tuchola-dc.pl
error: failed retrieving file 'core.db' from ba.mirror.garr.it : Could not resolve host: ba.mirror.garr.it
error: failed retrieving file 'core.db' from mirror.clarkson.edu : Could not resolve host: mirror.clarkson.edu
error: failed retrieving file 'core.db' from ftp.dei.uc.pt : Could not resolve host: ftp.dei.uc.pt
error: failed retrieving file 'core.db' from mirror.is.co.za : Could not resolve host: mirror.is.co.za
error: failed retrieving file 'core.db' from repo.iut.ac.ir : Could not resolve host: repo.iut.ac.ir
error: failed retrieving file 'core.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed to update core (invalid url for server)
error: failed retrieving file 'extra.db' from mirrors.netix.net : Could not resolve host: mirrors.netix.net
error: failed retrieving file 'extra.db' from mirror.tuchola-dc.pl : Could not resolve host: mirror.tuchola-dc.pl
error: failed retrieving file 'extra.db' from ba.mirror.garr.it : Could not resolve host: ba.mirror.garr.it
error: failed retrieving file 'extra.db' from mirror.clarkson.edu : Could not resolve host: mirror.clarkson.edu
error: failed retrieving file 'extra.db' from ftp.dei.uc.pt : Could not resolve host: ftp.dei.uc.pt
error: failed retrieving file 'extra.db' from mirror.is.co.za : Could not resolve host: mirror.is.co.za
error: failed retrieving file 'extra.db' from repo.iut.ac.ir : Could not resolve host: repo.iut.ac.ir
error: failed retrieving file 'extra.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed to update extra (invalid url for server)
error: failed retrieving file 'community.db' from mirrors.netix.net : Could not resolve host: mirrors.netix.net
error: failed retrieving file 'community.db' from mirror.tuchola-dc.pl : Could not resolve host: mirror.tuchola-dc.pl
error: failed retrieving file 'community.db' from ba.mirror.garr.it : Could not resolve host: ba.mirror.garr.it
error: failed retrieving file 'community.db' from mirror.clarkson.edu : Could not resolve host: mirror.clarkson.edu
error: failed retrieving file 'community.db' from ftp.dei.uc.pt : Could not resolve host: ftp.dei.uc.pt
error: failed retrieving file 'community.db' from mirror.is.co.za : Could not resolve host: mirror.is.co.za
error: failed retrieving file 'community.db' from repo.iut.ac.ir : Could not resolve host: repo.iut.ac.ir
error: failed retrieving file 'community.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed to update community (invalid url for server)
error: failed retrieving file 'multilib.db' from mirrors.netix.net : Could not resolve host: mirrors.netix.net
error: failed retrieving file 'multilib.db' from mirror.tuchola-dc.pl : Could not resolve host: mirror.tuchola-dc.pl
error: failed retrieving file 'multilib.db' from ba.mirror.garr.it : Could not resolve host: ba.mirror.garr.it
error: failed retrieving file 'multilib.db' from mirror.clarkson.edu : Could not resolve host: mirror.clarkson.edu
error: failed retrieving file 'multilib.db' from ftp.dei.uc.pt : Could not resolve host: ftp.dei.uc.pt
error: failed retrieving file 'multilib.db' from mirror.is.co.za : Could not resolve host: mirror.is.co.za
error: failed retrieving file 'multilib.db' from repo.iut.ac.ir : Could not resolve host: repo.iut.ac.ir
error: failed retrieving file 'multilib.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed to update multilib (invalid url for server)
error: failed to synchronize all databases

try
in first
sudo pacman-mirrors --continent

if no mirrors , that means no network on

This is the result:

::WARNING https://gitlab.manjaro.org ‘<urlopen error [Errno -2] Name or service not known>’
::WARNING https://wikipedia.org ‘<urlopen error [Errno -2] Name or service not known>’
::WARNING https://bitbucket.org ‘<urlopen error [Errno -2] Name or service not known>’
::INFO Internet connection appears to be down
::INFO Mirror ranking is not available
::INFO Mirror list is generated using random method
::WARNING Option ‘c/–country’ : ‘c/–country’ : ‘unknown country’
::INFO Available countries are
Australia, Austria, Bangladesh, Belarus, Belgium, Brazil, Bulgaria, Canada, Chile, China, Costa_Rica, Czech, Denmark, France, Georgia, Germany, Greece, Hong_Kong, Hungary, Iceland, India, Indonesia, Iran, Italy, Japan, Kenya, Netherlands, New_Zealand, Norway, Philippines, Poland, Portugal, Russia, Singapore, South_Africa, South_Korea, Spain, Sweden, Switzerland, Taiwan, Thailand, Turkey, Ukraine, United_Kingdom, United_States

You still have the live media installer connected, and it seems the inxi you provided is also from live media installer.

If you continue doing it so from live media then this conversation might never end :slight_smile:

So then what am I supposed to do differently?

Remove the USB installer, remove that entry from UEFI menu, and boot to your installed system, and if needed, to what @stephane instructed you to do.

But how do I do that? Seeing as I can’t access my installed Manjaro OS

It seems I have managed to get past my previous problems, but am now having another issue. When doing update-grub I get the following error:

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.
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.
Adding boot menu entry for UEFI Firmware Settings …
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

the lines about sda1 can be ignored. It’s probably your USB. Also the line about nvme0n1 can be ignored.

I see that UEFI settings entry was created and memtest86+ was found. But does it found your Linux? Were there more lines?

No, there were no more lines

So, I have to suppose update-grub found your Linux but it still you can’t access your Manjaro?

Iäm not sure what you mean. When I use chroot I am able to see all my files, so I am able to access Manjaro.