Beyond aggravating. Noticed manjaro grub entry vanished booting into windows, tried to restore grub, now wont boot at all, make sit to the manjaro boot and then powers off and restarts the laptop.
Steps
- Boot into live usb (I believe in UEFI mode, but this new lenovo has no option, live does have ‘detect UEFI partitions’ which works and shows old manjaro and windows)
- chroot into old system:
$ manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
- run grub install
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro
Installing for x86_64-efi platform.
Installation finished. No error reported.
- mkconfig:
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
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.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
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
I believe it’s the last step. When I check out /boot/grub/grub.cfg I don’t see the ‘menuentry’ s I’m expecting. I can fix the /var/lock/dmraid error by cratin that directory. I’m not so worried about device.map
error because my other machine doesn’t have those files. but the unknown device type nvme0n1
is probably why it cant probe for the windows partition (and I assume the Manjaro one too).
os-probe and grub-probe seem to have similar issues.
Any idea what is gong on here?