How can I access Manjaro without any error? (I had installed two grub-loader)

I was using Manjaro. And, I had Windows alongside Manjaro. I have installed Debian without “removing” any OS (I had removed Prime OS). And, I was using grub-loader of Manjaro earlier (Manjaro’s grub loader was detecting Prime OS by some new codes). But, I have installed grub-loader of Debian mistakenly. Even, currently I am using grub-loader of Debian. I can access Windows and Debian without any problem. But, I try to start Manjaro. I get bunch of error.

I had tried to update grub in Debian also. I got another error again

bash: update-grub: command not found

So, I had thought to install grub loader again. I got the same error again

bash: grub-install: command not found

How can I access Manjaro without any error?

grub.cfg of Manjaro :

[Istiak grub]# cat grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
else
  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
else
  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
fi
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_24.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_48.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_bold_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_mono_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-18.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b18.pf2
insmod png
set theme=($root)/usr/share/grub/themes/manjaro/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=hidden
  set timeout=5
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 5 ; then
  set timeout=0
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
	savedefault
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
	else
	  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
	fi
	linux	/boot/vmlinuz-5.10-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
	initrd	/boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
}
submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
	menuentry 'Manjaro Linux (Kernel: 5.10.42-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.42-1-MANJARO x64-advanced-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-5.10-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
	}
	menuentry 'Manjaro Linux (Kernel: 5.10.42-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.42-1-MANJARO x64-fallback-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-5.10-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/initramfs-5.10-x86_64-fallback.img
	}
	menuentry 'Manjaro Linux (Kernel: 4.14.235-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.235-1-MANJARO x64-advanced-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-4.14-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
	}
	menuentry 'Manjaro Linux (Kernel: 4.14.235-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.235-1-MANJARO x64-fallback-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-4.14-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/initramfs-4.14-x86_64-fallback.img
	}
	menuentry 'Manjaro Linux (Kernel: 4.9.271-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.271-1-MANJARO x64-advanced-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
	savedefault
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-4.9-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/intel-ucode.img /boot/initramfs-4.9-x86_64.img
	}
	menuentry 'Manjaro Linux (Kernel: 4.9.271-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.271-1-MANJARO x64-fallback-93d7c69b-c3e2-475e-9b22-292c8d37a6ff' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		else
		  search --no-floppy --fs-uuid --set=root 93d7c69b-c3e2-475e-9b22-292c8d37a6ff
		fi
		linux	/boot/vmlinuz-4.9-x86_64 root=UUID=93d7c69b-c3e2-475e-9b22-292c8d37a6ff rw  quiet splash apparmor=1 security=apparmor udev.log_priority=3
		initrd	/boot/initramfs-4.9-x86_64-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-10C4F74DC4F73416' {
	savedefault
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  10C4F74DC4F73416
	else
	  search --no-floppy --fs-uuid --set=root 10C4F74DC4F73416
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Prime OS" {
set root='(hd0,2)'
linux /android/kernel root=/dev/ram0 androidboot.hardware=android_x86_64 androidboot.selinux=permissive quiet SRC=/android DATA=/data vga=788
initrd /android/initrd.img
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
        search --fs-uuid --no-floppy --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  93d7c69b-c3e2-475e-9b22-292c8d37a6ff
        linux16 /boot/memtest86+/memtest.bin 
    }
fi
### END /etc/grub.d/60_memtest86+ ###

1 Like

Not sure about debian bit I know some distros like mint can’t boot manjaro but manjaro can boot them. I’m not an expert bit I’d try a live usb of manjaro and chroot and update manjaro grub.

Hopefully someone with more knowledge than me can confirm

1 Like

This should be exactly what you need:

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

if you run into trouble, quote the step number and the exact command you’re having trouble with.

:crossed_fingers:

1 Like

Actually, Debian is detecting Manjaro but, I got that error which picture I gave. Even, I can access Manjaro using Fallback initramfs…

Actually, I am using grub loader of Debian. Is it possible to change grub loader? If possible than how? I had grub loader in Manjaro also.

That’s why I told you to follow the Wiki article: Manjaro uses a more advanced grub than Debian: Manjaro uses a rolling release model, so when triple booting:

:crossed_fingers:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.