New grub update fix having problem with grub-install

I am following this post and I am stuck at step 3 after verifying that it is UEFI I went ahead with the instructions. Running os-prober is giving me this error. and grub install is giving me another error. I looked around for solutions and found few but I haven’t tried them yet because I am not sure which drive to use them on. nvme0n1p7 is my linux partition in the fdisk output. When install EOS I went with the replace partition option.

[root@EndeavourOS /]# os-prober 
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
[root@EndeavourOS /]# sudo grub-mkconfig -o /boot/grub/grub.cfg 
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux-g14
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-g14.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-g14-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-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.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@EndeavourOS /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-grub
Installing for x86_64-efi platform.
[root@EndeavourOS /]# sudo parted -l
Model: SanDisk Ultra (scsi)
Disk /dev/sda: 15.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size   Type     File system  Flags
 2      1825MB  1934MB  109MB  primary  fat16        esp


Model: INTEL SSDPEKNU512GZ (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB   fat32        EFI system partition          boot, esp
 2      274MB   290MB  16.8MB               Microsoft reserved partition  msftres
 3      290MB   413GB  413GB   ntfs         Basic data partition          msftdata
 7      413GB   487GB  73.7GB  ext4         root
 4      487GB   488GB  1101MB  ntfs         Basic data partition          hidden, diag
 5      488GB   512GB  23.6GB  ntfs         Basic data partition          hidden, msftdata
 6      512GB   512GB  210MB   fat32        Basic data partition          hidden, diag
[root@EndeavourOS /]# fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: INTEL SSDPEKNU512GZ                     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F16D0B72-37F6-4901-A8EE-D027DA59D1F3

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048     534527    532480   260M EFI System
/dev/nvme0n1p2    534528     567295     32768    16M Microsoft reserved
/dev/nvme0n1p3    567296  807617166 807049871 384.8G Microsoft basic data
/dev/nvme0n1p4 951517184  953667583   2150400     1G Windows recovery environment
/dev/nvme0n1p5 953667584  999804927  46137344    22G Microsoft basic data
/dev/nvme0n1p6 999804928 1000214527    409600   200M Windows recovery environment
/dev/nvme0n1p7 807617167  951517183 143900017  68.6G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sda: 14.32 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x593e4509

Device     Boot   Start     End Sectors  Size Id Type
/dev/sda1  *         64 3564735 3564672  1.7G  0 Empty
/dev/sda2       3564736 3777727  212992  104M ef EFI (FAT-12/16/32)


Disk /dev/loop0: 1.6 GiB, 1714974720 bytes, 3349560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Did you arch-chroot on the live ISO?

sudo mount /dev/nvme0n1p7 /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
arch-chroot /mnt

Then run the commands as per the instructions.

3 Likes

Oh thanks for pointing it out I didn’t run the second command :sweat_smile:.

1 Like

Did this work for you then?

Yes.

2 Likes

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