After following the "Restore the GRUB Bootloader" instructions, Grub disappeared again.

I have Manjaro (KDE) and Windows 10 installed on my HP laptop (15-db0125au, with AMD Ryzen 5 2500U and Radeon Vega 8 graphics).

After installing a BIOS update, Grub was wiped from the settings. So I went to the Manjaro Wiki to try to solve that.

First, I tried to follow the BIOS set of instructions. I tried a few different things, it didn't work.

Then, I realised I had missed the UEFI set. Hurrah, it worked. Sort of. The error "EFI variables are not supported on this system." appeared, and when I restarted my laptop, Grub booted into a command line ("Minimal BASH-like line editing is supported.").

Then I looked back at the instructions and realised I again missed a part explaining what to do should you get the error message I showed previously.

Grub seemed to install with no errors. Except when I rebooted, Grub was gone again. Windows loaded, and there was no "Manjaro" option in the boot device options. I followed the steps a couple more times, trying a few different things (like changing the EFI system partition's flags), but all for naught.

So after perhaps a couple of days of trying and failing to fix my bootloader, I gave in to the universe's demands and decided to ask for help. I was hoping someone could give me some pointers.

.

boot the manjaro usb, when you get to a desktop, connect to network, open a terminal and

sudo manjaro-chroot -a

if your given a choice and the only choice is zero 0, either enter 1 instead or leave it blank and hit enter. open the browser, come here and post both the command and it's output to make sure your actually in chroot.

also post output of sudo parted -l and be sure to use the </> button above the post entry box when pasting terminal output so it's formatted properly

1 Like

I apologise for the delay, by the way. Rufus took its sweet time burning Manjaro onto my USB and now, almost comically, Windows has decided it needs to "be configured" (probably for an update) while it shuts down.

1 Like

Okay, so this was the whole output, hopefully I did them in order.

[manjaro@manjaro ~]$ sudo manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
==> Detected systems:
 --> 0) ManjaroLinux
==> Select system to mount [0-0] : 
1
==> Mounting (ManjaroLinux) [/dev/sdb1]
 --> mount: [/mnt]
 --> mount: [/mnt/home]
 --> mount: [/mnt/home/henrique/Data]
[manjaro /]#  sudo parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  524MB   523MB   ntfs         Basic data partition          hidden, diag
 2      524MB   629MB   105MB   fat32        EFI system partition          boot, esp
 3      629MB   646MB   16.8MB               Microsoft reserved partition  msftres
 4      646MB   63.8GB  63.2GB  ntfs         Basic data partition          msftdata
 5      63.8GB  64.4GB  583MB   ntfs                                       hidden, diag
 6      64.4GB  532GB   468GB   ext4
 7      532GB   1000GB  468GB   ntfs         Basic data partition          msftdata


Model: ATA SAMSUNG MZNLN128 (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 4      1049kB  539MB   538MB   primary  fat32           esp
 1      539MB   78.6GB  78.1GB  primary  ext4
 2      78.6GB  111GB   32.2GB  primary  ext4
 3      111GB   128GB   17.2GB  primary  linux-swap(v1)


Model: Verbatim STORE N GO (scsi)
Disk /dev/sdc: 7747MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2537MB  2541MB  4194kB  primary               esp


[manjaro /]# 

windows is installed in UEFI mode. gpt partition table.

you have manjaro installed on a msdos partition table suggesting a legacy bios install, but you also have a fat32 partition suggesting a uefi setup. :dizzy_face:

how old is this manjaro installation?
were both manjaro and windows able to boot from grub without problems in the past?
were you previously

Heh. There's admittedly a bit of non-linear history.

Originally, yes, Windows was installed in presumably UEFI mode. Then, I deleted it and installed Manjaro on legacy BIOS because well, I couldn't install Linux with secure boot on. Don't remember particular details.

Recently-ish I reinstalled Windows, but I didn't mess with secure boot, as far as I know. The fat32 EFI partition was created today, after failed attempts without it when I was following Wiki instructions (I don't think the original installation had any EFI partitions). I created it from GParted.

Manjaro must've been on my computer for several months. Yes, they both booted from Grub without issues, but presumably it wasn't on a specialised EFI partition.

Also, I think you accidentally pressed reply too soon :laughing:

were you previously

clearly i was just seeing if you were paying attention. you are. :grin: i'll go with that.

oh no... it's a...

:scream::sob::weary: . you had to install manjaro in legacy bios because you couldnt get it to work with UEFI right?

Haha. Yeah, that's it. I'm not particularly fond of having a HP laptop, but oh well ¯\_(ツ)_/¯ I'll have to deal with the pain until I can buy a dell or something.

2 Likes

HP has a tendency to add extra "HP Advanced blah blah blah" to bios which really are just a secure boot to secure the secure boot incase you want to try and disable secure boot. :laughing:

you can reinstall windows in legacy or you can reinstall manjaro in UEFI, in bios you can disable any and all options beginning with "HP". you might need to set a bios settings password for all the options to become available.

OR, you can deal with it the way it is and use the bios boot selection menu to select which bootloader to use if it lets you.

Eh, I'd prefer not to reinstall anything, at least for now. However, the BIOS boot selection menu doesn't show Manjaro as an option at all.

go into bios and make sure legacy support is enabled. if it's set to "Pure UEFI" or "UEFI only" (same thing) you wont be able to boot anything other than UEFI. there should be a setting for it in bios

Secure boot is disabled, legacy support is enabled.

and you still cant boot manjaro manually?

this is above my level of grub knowledge. usually when it's a UEFI/legacy issue the user ends up either using a tool to convert windows from mbr to uefi (wont work for you), or reinstalling 1 of the OS so they are either both UEFI or both legacy bios.

i'll do what i usually do when the grubbing gets tough, i'll ping @gohlip, maybe he has a suggestion on if your able to avoid it, he's the grub wizard around here. :sweat_smile:

1 Like

Heh, thank you for the help anyway. I'll go to sleep now since it's fairly late here, so I won't be able to reply for a while, in case the user you mention appears and I'm not here lol

1 Like

Thanks @dglt . We've reached a few good conclusions so far.
I still need a few clarifications from @CodingEagle02

  1. Can you still boot both windows and manjaro from the same grub menu? Or that isn't valid anymore? If that is still true, can you print out the menu entries of windows and manjaro in /boot/grub/grub.cfg Just the entries will do.
  2. Same as to your 'parted -l' output in your post #3
    If that has changed. need a new 'parted -l'
  3. Need output from manjaro terminal
sudo parted -l
sudo blkid
cat /etc/fstab
test -d /sys/firmware/efi && echo UEFI || echo BIOS
efibootmgr -v

ps: in the next few days, I may be a bit busy. But I still expect to visit this forum daily.
And my time zone is different too. Expect long delays between responses.
@dglt and @AgentS (and others) are much capable to help.
Hope they do so here.

1 Like

Can you still boot both windows and manjaro from the same grub menu? Or that isn't valid anymore?

I can't access the grub menu at all. But if I did, I presumably true.

If that is still true, can you print out the menu entries of windows and manjaro in /boot/grub/grub.cfg Just the entries will do.

I'll print it anyway, in case it's helpful. I'm not sure which ones are the entry for Manjaro and Windows, so I suppose I'll just show you everything?

### 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

  • Same as to your 'parted -l' output in your post #3
    If that has changed. need a new 'parted -l'
  • Need output from manjaro terminal

Sure.

[manjaro@manjaro ~]$ sudo parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  524MB   523MB   ntfs         Basic data partition          hidden, diag
 2      524MB   629MB   105MB   fat32        EFI system partition          boot, esp
 3      629MB   646MB   16.8MB               Microsoft reserved partition  msftres
 4      646MB   63.8GB  63.2GB  ntfs         Basic data partition          msftdata
 5      63.8GB  64.4GB  583MB   ntfs                                       hidden, diag
 6      64.4GB  532GB   468GB   ext4
 7      532GB   1000GB  468GB   ntfs         Basic data partition          msftdata


Model: ATA SAMSUNG MZNLN128 (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 4      1049kB  539MB   538MB   primary  fat32           esp
 1      539MB   78.6GB  78.1GB  primary  ext4
 2      78.6GB  111GB   32.2GB  primary  ext4
 3      111GB   128GB   17.2GB  primary  linux-swap(v1)


Model: Verbatim STORE N GO (scsi)
Disk /dev/sdc: 7747MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2537MB  2541MB  4194kB  primary               esp


[manjaro@manjaro ~]$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: LABEL="Recovery" UUID="14E0048EE004786E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ea60d31e-201a-443f-8b05-8915d1d338e5"
/dev/sda2: UUID="6E07-7903" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="388dcead-1729-4fe7-85c4-99a053cbeb38"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="89a75c3e-0c19-49d7-bfaf-c6bd368bce28"
/dev/sda4: UUID="E81C2DEB1C2DB60A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="694e6790-1d24-4bb2-b957-2a6e393fc5f3"
/dev/sda5: UUID="4A207C59207C4E47" TYPE="ntfs" PARTUUID="fcee5b1d-d1ff-4ceb-91ec-02f2f51defa7"
/dev/sda6: LABEL="SHARED-DATA" UUID="51131483-da1a-4f13-b1f4-d6e50bfcaa58" TYPE="ext4" PARTUUID="efe994ea-8395-4d26-912e-9f13fd5441b1"
/dev/sda7: LABEL="WINDOWS_DATA" UUID="8AE46D47E46D371B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a407ee90-1519-45bd-b510-33859b26ec29"
/dev/sdb1: UUID="af0ab3b7-67cf-41f1-89a4-4410785e312b" TYPE="ext4" PARTUUID="eee1520c-01"
/dev/sdb2: UUID="af7dec11-f7c8-489a-8ccd-4490d2f2c502" TYPE="ext4" PARTUUID="eee1520c-02"
/dev/sdb3: UUID="d134abf1-6049-4ee2-a9eb-162c28ddb221" TYPE="swap" PARTUUID="eee1520c-03"
/dev/sdb4: UUID="1015-CE7D" TYPE="vfat" PARTUUID="eee1520c-04"
/dev/sdc1: UUID="2019-09-11-15-21-05-00" LABEL="MJRO1810" TYPE="iso9660"
/dev/sdc2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="07E3-BFF9" TYPE="vfat"
[manjaro@manjaro ~]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
/dev/mapper/root-image /             auto      defaults           0      0
[manjaro@manjaro ~]$ test -d /sys/firmware/efi && echo UEFI || echo BIOS
UEFI
[manjaro@manjaro ~]$ efibootmgr -v
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 2001,0003,3003,2002,0002,2004,0001,0000
Boot0000* Notebook Hard Drive - ST1000LM035-1RK172      BBS(HD,Notebook Hard Drive - ST1000LM035-1RK172,0x500)................-.R.......R.A.R.............................................A...............................
Boot0001* Notebook Hard Drive - SAMSUNG MZNLN128HAHQ-000H1      BBS(HD,Notebook Hard Drive - SAMSUNG MZNLN128HAHQ-000H1,0x500)................-.Y.......Y.A.Y.............................................A...............................
Boot0002* USB Hard Drive - VerbatimSTORE N GO   BBS(7,USB Hard Drive - VerbatimSTORE N GO,0x500)............................................................................A...........................
Boot0003* Windows Boot Manager  HD(2,GPT,388dcead-1729-4fe7-85c4-99a053cbeb38,0xfa000,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.}...1................
Boot0004* USB Hard Drive (UEFI) - VerbatimSTORE N GO (VerbatimSTORE N GO)       PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)/HD(1,MBR,0x0,0x4b9e0c,0x2000)RC
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot3003* Internal Hard Disk or Solid State Disk        RC

Hope I did everything right :sweat_smile:

Almost. :slightly_smiling_face:
Your /etc/fstab.
We need /etc/fstab of the installed OS.
What is provided is the /etc/fstab of the liveOS.
At the file manager of the liveOS, go to the installed Manjaro partition. Then to /etc/ directory and print out the 'fstab' for us. It is important and necessary for us to continue further.

ps: going for dinner. will respond about 4 hours later.
dglt and others are welcome to respond. hope you do too.

Oh, sorry lol. I'll chroot and reprint the results.

ps: going for dinner. will respond about 4 hours later.

Have a nice dinner.

I guess there's also sleeping naptime. :smiley:

[manjaro /]# sudo parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  524MB   523MB   ntfs         Basic data partition          hidden, diag
 2      524MB   629MB   105MB   fat32        EFI system partition          boot, esp
 3      629MB   646MB   16.8MB               Microsoft reserved partition  msftres
 4      646MB   63.8GB  63.2GB  ntfs         Basic data partition          msftdata
 5      63.8GB  64.4GB  583MB   ntfs                                       hidden, diag
 6      64.4GB  532GB   468GB   ext4
 7      532GB   1000GB  468GB   ntfs         Basic data partition          msftdata


Model: ATA SAMSUNG MZNLN128 (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system     Flags
 4      1049kB  539MB   538MB   primary  fat32           esp
 1      539MB   78.6GB  78.1GB  primary  ext4
 2      78.6GB  111GB   32.2GB  primary  ext4
 3      111GB   128GB   17.2GB  primary  linux-swap(v1)


Model: Verbatim STORE N GO (scsi)
Disk /dev/sdc: 7747MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2537MB  2541MB  4194kB  primary               esp


[manjaro /]# sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: LABEL="Recovery" UUID="14E0048EE004786E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ea60d31e-201a-443f-8b05-8915d1d338e5"
/dev/sda2: UUID="6E07-7903" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="388dcead-1729-4fe7-85c4-99a053cbeb38"
/dev/sda4: UUID="E81C2DEB1C2DB60A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="694e6790-1d24-4bb2-b957-2a6e393fc5f3"
/dev/sda5: UUID="4A207C59207C4E47" TYPE="ntfs" PARTUUID="fcee5b1d-d1ff-4ceb-91ec-02f2f51defa7"
/dev/sda6: LABEL="SHARED-DATA" UUID="51131483-da1a-4f13-b1f4-d6e50bfcaa58" TYPE="ext4" PARTUUID="efe994ea-8395-4d26-912e-9f13fd5441b1"
/dev/sda7: LABEL="WINDOWS_DATA" UUID="8AE46D47E46D371B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a407ee90-1519-45bd-b510-33859b26ec29"
/dev/sdb1: UUID="af0ab3b7-67cf-41f1-89a4-4410785e312b" TYPE="ext4" PARTUUID="eee1520c-01"
/dev/sdb2: UUID="af7dec11-f7c8-489a-8ccd-4490d2f2c502" TYPE="ext4" PARTUUID="eee1520c-02"
/dev/sdb3: UUID="d134abf1-6049-4ee2-a9eb-162c28ddb221" TYPE="swap" PARTUUID="eee1520c-03"
/dev/sdc1: UUID="2019-09-11-15-21-05-00" LABEL="MJRO1810" TYPE="iso9660"
/dev/sdc2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="07E3-BFF9" TYPE="vfat"
/dev/sdb4: UUID="1015-CE7D" TYPE="vfat" PARTUUID="eee1520c-04"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="89a75c3e-0c19-49d7-bfaf-c6bd368bce28"
[manjaro /]# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=af0ab3b7-67cf-41f1-89a4-4410785e312b /              ext4    defaults,noatime,discard 0 1
UUID=af7dec11-f7c8-489a-8ccd-4490d2f2c502 /home          ext4    defaults,noatime,discard 0 2
UUID=d134abf1-6049-4ee2-a9eb-162c28ddb221 swap           swap    defaults,noatime,discard 0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
UUID=51131483-da1a-4f13-b1f4-d6e50bfcaa58 /home/henrique/Data ext4    defaults,noatime         0 0
#/dev/sdb4      /boot   fat32   defaults        0       1
#UUID=6E07-7903 /boot/efi       vfat    defaults        0       1
#UUID=AB24-AC7A /boot/efi       vfat    defaults        0       1
/dev/sdb4       /boot/efi       vfat    defaults        0       1

[manjaro /]# test -d /sys/firmware/efi && echo UEFI || echo BIOS
UEFI
[manjaro /]# efibootmgr -v
EFI variables are not supported on this system.
[manjaro /]# exit
exit
[manjaro mnt]# sudo modprobe efivarfs
[manjaro mnt]# chroot /mnt                      
[manjaro /]# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
[manjaro /]# efibootmgr -v
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 2001,0003,3003,2002,0002,2004,0001,0000
Boot0000* Notebook Hard Drive - ST1000LM035-1RK172      BBS(HD,Notebook Hard Drive - ST1000LM035-1RK172,0x500)................-.R.......R.A.R.............................................A...............................
Boot0001* Notebook Hard Drive - SAMSUNG MZNLN128HAHQ-000H1      BBS(HD,Notebook Hard Drive - SAMSUNG MZNLN128HAHQ-000H1,0x500)................-.Y.......Y.A.Y.............................................A...............................
Boot0002* USB Hard Drive - VerbatimSTORE N GO   BBS(7,USB Hard Drive - VerbatimSTORE N GO,0x500)............................................................................A...........................
Boot0003* Windows Boot Manager  HD(2,GPT,388dcead-1729-4fe7-85c4-99a053cbeb38,0xfa000,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.}...1................
Boot0004* USB Hard Drive (UEFI) - VerbatimSTORE N GO (VerbatimSTORE N GO)   PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)/HD(1,MBR,0x0,0x4b9e0c,0x2000)RC
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot3003* Internal Hard Disk or Solid State Disk        RC

It seems I may also have by accident not copied the entirety of /boot/grub/grub.cfg because I was using it in nano. Here's the result of cat /boot/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='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
else
  search --no-floppy --fs-uuid --set=root af0ab3b7-67cf-41f1-89a4-4410785e312b
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='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
else
  search --no-floppy --fs-uuid --set=root af0ab3b7-67cf-41f1-89a4-4410785e312b
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=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
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-af0ab3b7-67cf-41f1-89a4-4410785e312b' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
        else
          search --no-floppy --fs-uuid --set=root af0ab3b7-67cf-41f1-89a4-4410785e312b
        fi
        linux   /boot/vmlinuz-5.2-x86_64 root=UUID=af0ab3b7-67cf-41f1-89a4-4410785e312b rw  quiet resume=UUID=d134abf1-6049-4ee2-a9eb-162c28ddb221 idle=halt acpi_enforce_resources=lax
        initrd  /boot/amd-ucode.img /boot/initramfs-5.2-x86_64.img
}
submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-af0ab3b7-67cf-41f1-89a4-4410785e312b' {
        menuentry 'Manjaro Linux (Kernel: 5.2.8-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.2.8-1-MANJARO x64-advanced-af0ab3b7-67cf-41f1-89a4-4410785e312b' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
                else
                  search --no-floppy --fs-uuid --set=root af0ab3b7-67cf-41f1-89a4-4410785e312b
                fi
                linux   /boot/vmlinuz-5.2-x86_64 root=UUID=af0ab3b7-67cf-41f1-89a4-4410785e312b rw  quiet resume=UUID=d134abf1-6049-4ee2-a9eb-162c28ddb221 idle=halt acpi_enforce_resources=lax
                initrd  /boot/amd-ucode.img /boot/initramfs-5.2-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.2.8-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.2.8-1-MANJARO x64-fallback-af0ab3b7-67cf-41f1-89a4-4410785e312b' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
                else
                  search --no-floppy --fs-uuid --set=root af0ab3b7-67cf-41f1-89a4-4410785e312b
                fi
                linux   /boot/vmlinuz-5.2-x86_64 root=UUID=af0ab3b7-67cf-41f1-89a4-4410785e312b rw  quiet resume=UUID=d134abf1-6049-4ee2-a9eb-162c28ddb221 idle=halt acpi_enforce_resources=lax
                initrd  /boot/initramfs-5.2-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 ###
### END /etc/grub.d/30_os-prober ###

### 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-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  af0ab3b7-67cf-41f1-89a4-4410785e312b
        linux16 /boot/memtest86+/memtest.bin 
    }
fi
### END /etc/grub.d/60_memtest86+ ###

Forum kindly sponsored by