Hi everyone,
I have an issue with grub that I am not able to fix. I have tried reinstalling grub and still nothing. It started when I updated the system and the update hung on a timeshift snapshot running through rsync even though I have btrfs, so I thought it was weird. It took a very long time and didn’t finish, so I stopped the update. Now, when I reboot, it complains about /@/boot/vmlinuz-linux
not found on both regular and LTS kernels. I have snapshots set up on grub, so I’m back in the system, but running grub-mkconfig -o /boot/grub/grub.cfg
gives me an error after sifting through finding snapshots. The last part of the error is this:
Found 13 snapshot(s)
Unmount /tmp/grub-btrfs.DVui3CR9vZ .. Success
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 174
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
Every time I reboot the system, I’d have to select a certain kernel to be able to boot. If I select another, it complains about the same vmlinuz-linux
not found. Tried grub customizer to put the working kernel on the top, but it, too, throws the same above error. I am honestly out of ideas. I have tried so many things, including reinstalling grub successfully, and nothing worked. The system works, but every time I reboot I have to choose that one kernel that I can’t even put as option number one. I have even removed the LTS kernel and nothing worked so far.
Here is my efibootmgr -v
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0008,0009
Boot0000* endeavouros HD(2,GPT,ac13dfce-43cb-9841-b598-463c8e3bb101,0x4800,0x200000)/File(\EFI\endeavouros\grubx64.efi)
dp: 04 01 2a 00 02 00 00 00 00 48 00 00 00 00 00 00 00 00 20 00 00 00 00 00 ce df 13 ac cb 43 41 98 b5 98 46 3c 8e 3b b1 01 02 02 / 04 04 3e 00 5c 00 45 00 46 00 49 00 5c 00 65 00 6e 00 64 00 65 00 61 00 76 00 6f 00 75 00 72 00 6f 00 73 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0008* Onboard NIC(IPV4) PciRoot(0x0)/Pci(0x1f,0x6)/MAC(14b31f267931,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 06 1f / 03 0b 25 00 14 b3 1f 26 79 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 / 03 0c 1b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Boot0009* Onboard NIC(IPV6) PciRoot(0x0)/Pci(0x1f,0x6)/MAC(14b31f267931,0)/IPv6([::]:<->[::]:,0,0)0000424f
dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 06 1f / 03 0b 25 00 14 b3 1f 26 79 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 / 03 0d 3c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 / 7f ff 04 00
data: 00 00 42 4f
Here is my lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /home
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 8M 0 part
├─nvme0n1p2 259:2 0 1G 0 part /boot/efi
├─nvme0n1p3 259:3 0 16G 0 part [SWAP]
└─nvme0n1p4 259:4 0 448.8G 0 part /var/cache
/var/log
/
Please let me know if you need any more info. It is a Dell mini OptiPlex running all intel. No NVIDIA or a dGPU. Any help is greatly appreciated
Thanks