I’ve installed manjaro on a dual-boot along with windows, on two separate drives. The os works, but I struggle to boot. At first I was automatically sent to the bootloader where the only option I had was windows, but now my system crashes even if selecting that. Currently I rely on a usb drive with supergrub to manually select boot file and start up either os, which seems to work as intended. I’ve spent a few days searching and looking for people with the same problem, but everyone seems to resolve it by reinstalling grub. I’ve done so here, but os-prober still fails to detect manjaro.
[matsb@mats-hppavilionnotebook /]$ sudo fdisk -l
Disk /dev/sda: 119,24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SanDisk SD9SN8W-
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 19EE8C2E-7FCB-45F6-BB54-75A9E6028337
Device Start End Sectors Size Type
/dev/sda1 2048 534527 532480 260M EFI System
/dev/sda2 534528 567295 32768 16M Microsoft reserved
/dev/sda3 567296 248049663 247482368 118G Microsoft basic data
/dev/sda4 248049664 250056703 2007040 980M Windows recovery environment
Disk /dev/sdb: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM035-1RK1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3CD2B552-FA26-4BDE-A2F8-B89421CB3AEC
Device Start End Sectors Size Type
/dev/sdb1 2048 1383340031 1383337984 659,6G Microsoft basic data
/dev/sdb2 1391153152 1392152575 999424 488M EFI System
/dev/sdb3 1918113792 1953523711 35409920 16,9G Microsoft basic data
/dev/sdb4 1453592576 1478168575 24576000 11,7G Linux swap
/dev/sdb5 1392152576 1453592575 61440000 29,3G Linux filesystem
/dev/sdb6 1682968576 1684017151 1048576 512M Microsoft basic data
/dev/sdb7 1478168576 1682968575 204800000 97,7G Linux filesystem
Partition table entries are not in disk order.
[matsb@mats-hppavilionnotebook /]$ sudo mount /dev/sdb5
mount: /: /dev/sdb5 already mounted on /.
[matsb@mats-hppavilionnotebook /]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-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.
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
This is my system info:
[matsb@mats-hppavilionnotebook /]$ neofetch
matsb@mats-hppavilionnotebook
-----------------------------
OS: Manjaro Linux x86_64
Host: HP Pavilion Notebook
Kernel: 5.10.53-1-MANJARO
Uptime: 1 hour, 6 mins
Packages: 1236 (pacman)
Shell: bash 5.1.8
Resolution: 1920x1080
DE: Plasma 5.22.4
WM: KWin
Theme: Breath2 2021 Dark [Plasma], Breath [GTK2/3]
Icons: [Plasma], breath2 [GTK2/3]
Terminal: konsole
Terminal Font: Noto Mono 10
CPU: Intel i5-8300H (8) @ 4.000GHz
GPU: NVIDIA GeForce GTX 1050 Mobile
GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630]
Memory: 3213MiB / 7803MiB
[matsb@mats-hppavilionnotebook /]$ uname -m
x86_64
This is my /boot/grub/grub.cfg file:
#
# 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_gpt
insmod ext2
set root='hd1,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
else
search --no-floppy --fs-uuid --set=root 77f4da26-e9ad-4029-8a5d-33e7554bfb11
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_GB
insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd1,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
else
search --no-floppy --fs-uuid --set=root 77f4da26-e9ad-4029-8a5d-33e7554bfb11
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-77f4da26-e9ad-4029-8a5d-33e7554bfb11' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
else
search --no-floppy --fs-uuid --set=root 77f4da26-e9ad-4029-8a5d-33e7554bfb11
fi
linux /boot/vmlinuz-5.10-x86_64 root=UUID=77f4da26-e9ad-4029-8a5d-33e7554bfb11 rw quiet apparmor=1 security=apparmor resume=UUID=1f1dee58-7ac1-4467-a016-2787991f151b 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-77f4da26-e9ad-4029-8a5d-33e7554bfb11' {
menuentry 'Manjaro Linux (Kernel: 5.10.53-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.53-1-MANJARO x64-advanced-77f4da26-e9ad-4029-8a5d-33e7554bfb11' {
savedefault
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
else
search --no-floppy --fs-uuid --set=root 77f4da26-e9ad-4029-8a5d-33e7554bfb11
fi
linux /boot/vmlinuz-5.10-x86_64 root=UUID=77f4da26-e9ad-4029-8a5d-33e7554bfb11 rw quiet apparmor=1 security=apparmor resume=UUID=1f1dee58-7ac1-4467-a016-2787991f151b udev.log_priority=3
initrd /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
}
menuentry 'Manjaro Linux (Kernel: 5.10.53-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.53-1-MANJARO x64-fallback-77f4da26-e9ad-4029-8a5d-33e7554bfb11' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
else
search --no-floppy --fs-uuid --set=root 77f4da26-e9ad-4029-8a5d-33e7554bfb11
fi
linux /boot/vmlinuz-5.10-x86_64 root=UUID=77f4da26-e9ad-4029-8a5d-33e7554bfb11 rw quiet apparmor=1 security=apparmor resume=UUID=1f1dee58-7ac1-4467-a016-2787991f151b udev.log_priority=3
initrd /boot/initramfs-5.10-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 Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-3A08-7826' {
savedefault
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 3A08-7826
else
search --no-floppy --fs-uuid --set=root 3A08-7826
fi
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
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 ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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.
### 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=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5 77f4da26-e9ad-4029-8a5d-33e7554bfb11
linux16 /boot/memtest86+/memtest.bin
}
fi
### END /etc/grub.d/60_memtest86+ ###
Let me know if I should include more information. Any help would be appreciated!