Dual boot issue with "Default device missing..." Lenovo error message

Model: ATA Samsung SSD 870 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  473MB   472MB   ntfs         Basic data partition          hidden, diag
 2      473MB   577MB   104MB   fat32        EFI system partition          boot, esp
 3      577MB   593MB   16,8MB               Microsoft reserved partition  msftres
 4      593MB   500GB   499GB   ntfs         Basic data partition          msftdata
 5      500GB   500GB   597MB   ntfs                                       hidden, diag
 6      500GB   634GB   134GB   ext4
 7      634GB   1000GB  366GB   ext4


Model: ATA WDC WDS500G1B0A- (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      1049kB  107GB  107GB  ext4
 2      107GB   500GB  393GB  fat32              msftdata

Yes. sda6 Manjaro /, sda7 Manjaro /home, as I partitioned it.
sda2 is /boot/efi

pwd
/boot/efi/EFI
ls -lt
total 4
drwx------ 2 root root 1024 23. apr   21:33 Ubuntu
drwx------ 2 root root 1024 14. apr   00:57 Manjaro
drwx------ 2 root root 1024 22. juuni  2017 Boot
drwx------ 4 root root 1024 22. juuni  2017 Microsoft

This Ubuntu thing is what I use to boot into Manjaro. UEFI ignores anything which is not Ubuntu, Fedora or Microsoft and doesn’t show in boot menu or anywhere.

boot on USB iso manjaro
open a terminal

sudo manjaro-chroot -a
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
efibootmgr -v
echo GRUB_DISABLE_OS_PROBER=false|tee -a /etc/default/grub && update-grub
exit ( end-chroot )

then go to UEFI , select manjaro

1 Like
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.
==> Mounting (ManjaroLinux) [/dev/sda6]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
 --> mount: [/mnt/home]

These errors are probably normal, there is no grub on sdc1, it is the USB

[manjaro-gnome /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.

Grub reinstall done.

[manjaro-gnome /]# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0003,0002,0001,2001,2002,2003
Boot0000* EFI USB Device (Wilk    USB DISK 3.0)	PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(0,0)/HD(1,MBR,0x0,0x52eed0,0x2000)RC
Boot0001* ubuntu	HD(2,GPT,f6bb127c-dc18-43d9-9c7e-40d5350213af,0xe1800,0x31800)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0002* Windows Boot Manager	HD(2,GPT,f6bb127c-dc18-43d9-9c7e-40d5350213af,0xe1800,0x31800)/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.}....................
Boot0003* manjaro	HD(2,GPT,f6bb127c-dc18-43d9-9c7e-40d5350213af,0xe1800,0x31800)/File(\EFI\manjaro\grubx64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC
[manjaro-gnome /]# echo GRUB_DISABLE_OS_PROBER=false|tee -a /etc/default/grub && update-grub
GRUB_DISABLE_OS_PROBER=false
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
Found linux image: /boot/vmlinuz-5.4-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.4-x86_64.img
Found initrd fallback image: /boot/initramfs-5.4-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.
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.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

In the last, grub didn’t detect Windows.

Exited chroot

We shall see, how the boot menu boot will go. Probs once UEFI will allow me to use Manjaro :smiley:

Shows me “Lenovo” on both displays. Seems to be frozen. Waiting. Nothing happens. Power off?

Doesn’t go anywhere. Usually allows to boot in after restart.

After power off - power on, booted into Manjaro directly, no grub menu (since it didn’t detect windows).

Can do repeat boot test, see if it let’s me in every time, even if UEFI lets me in here every time.

Did a restart from Manjaro entry – booted back into the “Default boot device” error message. The “manjaro” entry is gone again. Booted back in via “ubuntu” entry.

  • The boot order was initially after previous grub reinstall: manjaro, windows, ubuntu
  • After the reboot: windows ubuntu
  • When I had this issue with Linux Mint (the “Default boot device” thing, started after I tried to install Manjaro onto an USB drive and boot from there), if the order before was: ubuntu, windows; after it flashes me that message, the boot order is: windows, ubuntu
  • Vanishing of manjaro entry is thus specific to how UEFI treats manjaro.

Basically, what I mean is that if it wouldn’t silent block manjaro, it would put windows the first after giving the error.

your Uefi always boot with Secureboot , need the shim key that is stored in UEFI motherboard ,
that why after not booting , efi remove entry

can you check this point ? ( 1:17)
https://www.youtube.com/watch?v=AzrMm7qvNo8

check info in your UEFI motherboard

disable secure boot
disable fast boot
disks on AHCI
no legacy
no CSM
UEFI only or others ( not windows )

Yes I have entered my UEFI menu that way as well

Secure boot is still disabled
Fast boot is still disabled
the boot mode is on UEFI only
Optimize for other OS (other option is Win8)

  • Only difference between Secure Boot disabled and enabled is that on “enabled” it doesn’t let me to boot manjaro or the manjaro USB - if it had shim file, UEFI would probably let it pass.
  • Linux mint, when I had it on my system had shim efi fie indeed. That “ubuntu” folder looks exactly like manjaro folder. just grubx64 and nothing else. Still it removes only the “manjaro” entry.
  • The “Default boot device missing” error message was there regardless of shim file being in the efi folder or not.

you have to see if there is admin mode , that block shim keys or only use that

There is an admin mode with the password
There is setup mode

Neither of them change anything in terms of options to select specific bootloader to trust or a shim key.

** There is set administrator password setting. Tried to do grub reinstallation while having the password and also checked and reentered the secureboot and other UEFI parameters. – nothing changed.

Follow up on that thread.

Didn’t manage to solve the issue on Lenovo. Lenovo was at least 6 years old. Got a dell laptop, which doesn’t have that issue with UEFI firmware.

Solved the issue for myself, but not for that particular system. :smiley:

1 Like