Hello,
I had some weird issues with my GPU (GPU ‘falls of the bus’ when playing wine games) since 2 days ago and thus thought I could try restoring an older snapshot of the system since I didn’t know what the reason for the sudden hard crashes could be.
So I just selected a snapshot from a week ago in timeshift and didn’t change any options, just pressed next and finish to restore it.
When the PC then rebooted itself I entered my LUKS password to decrypt the fully encrypted drive to get into the grub menu but grub instantly went into rescue mode with the error:
error: symbol `grub_disk_native_sectors' not found
Entering rescue mode...
grub rescue>
Can anybody help me fixing grub again since I have no idea how to it works?
I used the Manjaro installer with all defaults besides the LUKS encryption and only once updated grub manually to allow for probing for other operating systems and show the grub menu (I installed another NVME drive with Windows some time ago - during the installation I disconnected the Linux NVME drive).
What I already tried was booting the latest Manjaro ISO (Manjaro Installation Media) via an USB stick (and backed up all my data) and there mounting my encrypted drive in the file explorer and then running timeshift again. But when I try to restore the latest snapshot (or any snapshot) I get the error:
Boot device not selected
An encrypted device is selected for root filesystem (/). The boot directory must be mounted on a non-encrypted device for the system to boot successfully.
So I cannot even get back to another timeshift snapshot or try to reinstall grub via timeshift.
I also saw another thread (I would provide a link but I am not allowed to post it) with the same grub error (I did not find any other sites where people had the same grub error) but when I run
lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME
my Linux NVME drive (I have 2 NVME drives on my mainboard, one has Windows 10 on it and the other one has Manjaro on it) has not the problem of being dos which seemed like this was the problem for the person in the thread:
PATH PTTYPE PARTTYPE FSTYPE PARTTYPENAME
/dev/loop0 squashfs
/dev/loop1 squashfs
/dev/loop2 squashfs
/dev/loop3 squashfs
/dev/sda dos iso9660
/dev/sda1 dos 0x0 iso9660 Empty
/dev/sda2 dos 0xef vfat EFI (FAT-12/16/32)
/dev/sr0
/dev/mapper/luks-d270ca50-01da-499b-96c0-5f1ecb560e62 ext4
/dev/nvme0n1 gpt
/dev/nvme1n1 gpt
/dev/nvme0n1p1 gpt c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat EFI System
/dev/nvme1n1p1 gpt c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat EFI System
/dev/nvme1n1p2 gpt 0fc63daf-8483-4772-8e79-3d69d8477de4 crypto_LUKS Linux filesystem
/dev/nvme0n1p2 gpt e3c9e316-0b5c-4db8-817d-f92df00215ae Microsoft reserved
/dev/nvme0n1p3 gpt ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ntfs Microsoft basic data
/dev/nvme1n1p3 gpt 0fc63daf-8483-4772-8e79-3d69d8477de4 crypto_LUKS Linux filesystem
/dev/nvme0n1p4 gpt de94bba4-06d1-4d40-a16a-bfd50179d6ac ntfs Windows recovery environment
When following the other steps of the Manjaro GRUB/Restore the GRUB Bootloader (I would provide a link but I am not allowed to post it) I get the following output:
sudo fdisk -l /dev/nvme1n1
Disk /dev/nvme1n1: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 970 EVO Plus 1TB
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: 7E5314FA-18E7-9B42-BBEB-2A037E3A3324
Device Start End Sectors Size Type
/dev/nvme1n1p1 4096 618495 614400 300M EFI System
/dev/nvme1n1p2 618496 1881264195 1880645700 896.8G Linux filesystem
/dev/nvme1n1p3 1881264196 1953520064 72255869 34.5G Linux filesystem
Then when I try to use manjaro-chroot I again don’t know what to do since it doesn’t even find any Linux partitions (could this be because the drive is somehow still encrypted?).
$ su
[manjaro manjaro]# 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.
==> ERROR: No Linux partitions detected!
[manjaro manjaro]#
Thank you for your help and sorry for my bad English.