Hello.
I ran into a little problem after doing some updates and getting some errors. I tried the GRUB/Restore the GRUB Bootloader from wiki and it didn’t work.
Terminal log for every command in grub restore guide in order from the wiki
lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME
/dev/loop0 squashfs
/dev/loop1 squashfs
/dev/loop2 squashfs
/dev/loop3 squashfs
/dev/sda dos
/dev/sda1 dos 0x7 ntfs HPFS/NTFS/exFAT
/dev/sda2 dos 0x7 ntfs HPFS/NTFS/exFAT
/dev/sda3 dos 0x27 ntfs Hidden NTFS WinRE
/dev/sda4 dos 0x5 Extended
/dev/sda5 dos 0xc vfat W95 FAT32 (LBA)
/dev/sda6 dos 0x82 swap Linux swap / Solaris
/dev/sda7 dos 0x83 ext4 Linux
/dev/sda8 dos 0x83 ext4 Linux
/dev/sdb dos iso9660
/dev/sdb1 dos 0x0 iso9660 Empty
/dev/sdb2 dos 0xef vfat EFI (FAT-12/16/32)
sudo fdisk -l /dev/sda
Disk /dev/sda: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 850
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: 0xa8106d8d
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 270197234 269990387 128.7G 7 HPFS/NTFS/exFAT
/dev/sda3 487303168 488394751 1091584 533M 27 Hidden NTFS WinRE
/dev/sda4 270197235 487303167 217105933 103.5G 5 Extended
/dev/sda5 270199283 271249407 1050125 512.8M c W95 FAT32 (LBA)
/dev/sda6 271251456 288028671 16777216 8G 82 Linux swap / Solaris
/dev/sda7 288030720 329973759 41943040 20G 83 Linux
/dev/sda8 329975808 487303167 157327360 75G 83 Linux
su
manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda7]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
--> mount: [/mnt/home]
pacman -Syu grub
pacman -Syu grub
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: grub-2.04-13 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) grub-2.04-13
Total Installed Size: 49.03 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [###################################################################] 100%
(1/1) checking package integrity [###################################################################] 100%
(1/1) loading package files [###################################################################] 100%
(1/1) checking for file conflicts [###################################################################] 100%
(1/1) checking available disk space [###################################################################] 100%
:: Processing package changes...
(1/1) reinstalling grub [###################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Could not prepare Boot variable: Function not implemented
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
grub-mkconfig -o /boot/grub/grub.cfg
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
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME
/dev/loop0
/dev/loop1
/dev/loop2
/dev/loop3
/dev/sda
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sda4
/dev/sda5
/dev/sda6
/dev/sda7
/dev/sda8
/dev/sdb
/dev/sdb1
/dev/sdb2
[manjaro /]# ls /sys/firmware/efi
config_table efivars esrt fw_platform_size fw_vendor runtime runtime-map systab
What should I do, and if it can’t be fixed, is it possible to retrieve files from the system booting from usb?