Boot directly to manjaro no grub menu

when installing i’ve chosen windows boot partition and set flags and boot/efi after installation it goes directly to manjaro and show no grub menu. can’t choose windows or kernel.if i want to boot to windows, i have to chose from from bios boot menu option.
my mb is asus and secure boot settings is Other OS. if i choose UEFI got a message for unauthorized access.
how can i fix this
some necessary information
sudo parted -l

Model: PNY CS3030 500GB SSD (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

 Number  Start   End    Size    File system     Name  Flags
     1      1049kB  315MB  314MB   fat32                 bios_grub
     2      315MB   215GB  215GB   ntfs                  msftdata
     3      215GB   376GB  161GB   ntfs                  msftdata
     4      376GB   385GB  8598MB  linux-swap(v1)        swap, legacy_boot
     5      385GB   427GB  41.9GB  ext4
     7      427GB   500GB  72.9GB  ext4
     6      500GB   500GB  532MB   fat32                 msftdata

sudo blkid

/dev/nvme0n1p1: UUID=“1A17-1C6E” BLOCK_SIZE=“512” TYPE=“vfat” PARTUUID=“72a6a0fe-00cd-4c07-a219-015ff104d925”
/dev/nvme0n1p2: BLOCK_SIZE=“512” UUID=“01D6506424C4FE90” TYPE=“ntfs” PARTUUID=“b92088c4-197a-459b-b841-0aad51c1629d”
/dev/nvme0n1p3: BLOCK_SIZE=“512” UUID=“01D6508AC5831760” TYPE=“ntfs” PARTUUID=“3072e327-68a5-8427-8f37-585b14d05259”
/dev/nvme0n1p4: UUID=“2c56b73d-e77d-4910-8d7d-caa54541b850” TYPE=“swap” PTTYPE=“dos” PARTUUID=“5bab9ed5-3da7-5c40-a425-bdbccc37cd5e”
/dev/nvme0n1p5: UUID=“50506574-4955-48b3-8da9-55dbf5a5d7dd” BLOCK_SIZE=“4096” TYPE=“ext4” PARTUUID=“79ebb37a-b136-e64a-becc-9156570d3d23”
/dev/nvme0n1p6: UUID=“08A8-E587” BLOCK_SIZE=“512” TYPE=“vfat” PARTUUID=“33ca5e48-a768-6b4b-8c58-c2db002642d5”
/dev/nvme0n1p7: UUID=“d9469e21-2ba6-4eee-b974-4799d85af31e” BLOCK_SIZE=“4096” TYPE=“ext4” PARTUUID=“8d1229a1-cbb5-6548-8130-47c7b1e5f742”
findmnt -s
TARGET SOURCE FSTYPE OPTIONS
/boot/efi UUID=1A17-1C6E vfat umask=0077
swap UUID=2c56b73d-e77d-4910-8d7d-caa54541b850 swap defaults,noatime
/ UUID=50506574-4955-48b3-8da9-55dbf5a5d7dd ext4 defaults,noatime
/home UUID=d9469e21-2ba6-4eee-b974-4799d85af31e ext4 defaults,noatime
/mnt/01D6508AC5831760 /dev/disk/by-uuid/01D6508AC5831760 auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=game

efibootmgr
important note:
manjaro boot is boot0012 and windows is boot0014 both name windows boot manager. dont know why.

BootCurrent: 0012
Timeout: 1 seconds
BootOrder: 0012,0014,0013,0015,0016,0017
Boot0003  Hard Drive 
Boot0011  CD/DVD Drive 
Boot0012* Windows Boot Manager
Boot0013* UEFI OS
Boot0014* Windows Boot Manager
Boot0015* UEFI OS
Boot0016* Hard Drive 
Boot0017* CD/DVD Drive 

est -d /sys/firmware/efi && echo efi || echo bios

efi

sudo update-grub

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.
It's output will be used to detect bootable binaries on them and create new boot entries.
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

edit the /etc/default/grub file and change these values

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR="Manjaro"

after that run sudo update-grub

2 Likes

You may also need to add the line “GRUB_DISABLE_OS_PROBER=false” to GRUB. To do this use:

sudo nano /etc/default/grub

and

sudo update-grub

2 Likes

changed it to this

  GNU nano 5.6.1                                                                                                /etc/default/grub                                                                                                           
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=Menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=2c56b73d-e77d-4910-8d7d-caa54541b850 udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

how can i add windows to menu now?

You don’t have to. If you run… :arrow_down:

sudo update-grub

… then the os_prober script will detect the presence of Windows on your machine and will add it to the boot loader menu.

i did and got this

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.
It's output will be used to detect bootable binaries on them and create new boot entries.
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

still no windows. why it doesn’t detect it?

Did you reboot?

To do that, edit /etc/default/grub:

$ sudo nano /etc/default/grub

and insert the following:

GRUB_DISABLE_OS_PROBER=false

Save and exit. (Ctrl + X followed by Y, for yes, and then Enter)

Back in the terminal, run:

$ sudo update-grub

Theoretically it should now have added Windows to the boot options. So it should, theoretically, be saafe to reboot.

Continuing the discussion from Boot directly to manjaro no grub menu:

yes i did it

even after update-grub
it’s my grub now

  GNU nano 5.6.1                                                                                                /etc/default/grub                                                                                                           
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=Menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=2c56b73d-e77d-4910-8d7d-caa54541b850 udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

yes
in my grub menu i have these

manjaro linux

advanced option for manjaro linux

UEFI firmware settings

Maybe the problem is in the last line, which does not appear to me. I don’t have UEFI systems, but it looks like it could be adding the entry to some UEFI boot menu.

I think this is your problem if you formatted this the windows boot info will have gone.
IMHO it is bad to use windows esp partition as one day on a windows update it could trash your manjaro boot loader!

first found <UUID> .
lsblk

nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   299M  0 part /boot/efi
├─nvme0n1p2 259:2    0   200G  0 part 
├─nvme0n1p3 259:3    0   150G  0 part /mnt/01D6508AC5831760
├─nvme0n1p4 259:4    0   507M  0 part 
├─nvme0n1p5 259:5    0     8G  0 part [SWAP]
├─nvme0n1p6 259:6    0  39.1G  0 part /
└─nvme0n1p7 259:7    0  67.9G  0 part /home

looked for /boot/efi partion and then
sudo blkid /dev/nvme0n1p1

/dev/nvme0n1p1: LABEL_FATBOOT=“SYSTEM” LABEL=“SYSTEM” UUID=“EE45-2196” BLOCK_SIZE=“512” TYPE=“vfat” PARTUUID=“72a6a0fe-00cd-4c07-a219-015ff104d925”

uuid is EE45-2196

add /etc/grub.d/40_custom appendex

sudo nano /etc/grub.d/40_custom

menuentry “Windows 10” {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set EE45-2196
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

in the end

sudo update-grub

done.

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