Grub errors on installing updates

I'm getting errors on installing updates with warnings but can still boot etc.
Now I did try GrubCustomizer to get rid of win part 2 as a boot option.
I'll do more searching but did see grub repair mentioned and grub fix option.
But I'm not there yet.
Could a su grub update fix the issue I may try that.
but not sure as all is well even though it's telling me something else.
I did look in grub default and didn't see any syntax errors looked ok to me.

Error or Warnings or pacnew files?
Without infos nobody can help.

inxi -Fxxxrza

Do not use grub customizer.
If you can boot to system where is the problem?

Do you use the terminal for update?
Then post the "errors" here too. As text, please, no picture.

: Synchronizing package databases...
 core is up to date
 extra is up to date
 community               5.3 MiB  25.2 MiB/s 00:00 [----------------------] 100%
 multilib-testing is up to date
 multilib              152.8 KiB   149 MiB/s 00:00 [----------------------] 100%
 chaotic-aur          1611.5 KiB  2.19 MiB/s 00:01 [----------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2) faudio-20.12-1  lib32-faudio-20.12-1

Total Download Size:   0.23 MiB
Total Installed Size:  0.61 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 faudio-20.12-1-x...   123.2 KiB  4.63 MiB/s 00:00 [----------------------]  53%
 lib32-faudio-20....   232.4 KiB  6.13 MiB/s 00:00 [----------------------] 100%
(2/2) checking keys in keyring                     [----------------------] 100%
(2/2) checking package integrity                   [----------------------] 100%
(2/2) loading package files                        [----------------------] 100%
(2/2) checking for file conflicts                  [----------------------] 100%
(2/2) checking available disk space                [----------------------] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
Using system disk as snapshot device for creating snapshots in BTRFS mode

/dev/nvme0n1p1 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

Creating new backup...(BTRFS)
Saving to device: /dev/nvme0n1p1, mounted at path: /run/timeshift/backup
Created directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2020-12-01_16-45-08
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2020-12-01_16-45-08/@
Created control file: /run/timeshift/backup/timeshift-btrfs/snapshots/2020-12-01_16-45-08/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2020-12-01_16-45-08': ondemand

/dev/nvme0n1p1 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

Removing snapshot: 2020-11-30_04-51-38
Deleting subvolume: @ (Id:378)
Deleted subvolume: @ (Id:378)

Destroying qgroup: 0/378
Destroyed qgroup: 0/378

Deleted directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2020-11-30_04-51-38
Removed snapshot: 2020-11-30_04-51-38
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found Windows 10 on /dev/sda2
Found Windows 10 on /dev/sda3
Detecting snapshots ...
Info: Separate boot partition not detected 
Found snapshot: 2020-12-01 16:45:08 | timeshift-btrfs/snapshots/2020-12-01_16-45-08/@
Found snapshot: 2020-12-01 15:34:04 | timeshift-btrfs/snapshots/2020-12-01_15-34-04/@
Found snapshot: 2020-12-01 09:51:24 | timeshift-btrfs/snapshots/2020-12-01_09-51-24/@
Found snapshot: 2020-12-01 06:44:34 | timeshift-btrfs/snapshots/2020-12-01_06-44-34/@
Found snapshot: 2020-11-30 22:22:49 | timeshift-btrfs/snapshots/2020-11-30_22-22-49/@
Found 5 snapshot(s)
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 229
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/ file attached.
:: Processing package changes...
(1/2) upgrading faudio                             [----------------------] 100%
(2/2) upgrading lib32-faudio                       [----------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Foreign/AUR package notification
=> No foreign/AUR packages found.
(3/4) Orphaned package notification
=> No orphans found.
(4/4) Checking for .pacnew and .pacsave files...
.pac* files found:
Please check and merge

(as requested)

Off course there is no picture.

Do in terminal

sudo pacman -Syu

And post the output as text, please.


And I had orphan files but I removed them with system tool for doing this. lol I always forget it's name but I get there .

What exactly did you do with GrubCustomizer, and can you undo the change?

Can you regenerate a clean configuration file using

sudo grub-mkconfig -o /boot/grub/grub.cfg



removed a link to my games folder that it thinks is bootable for windows.

I did and get same error at line 229 but just now no error i.e nothing to do after that cmd(sudo pacman -Syu).
ran your cmd before.(sudo grub-mkconfig -o /boot/grub/grub.cfg) Jonathan>.

OK, so that means you have broken part of the GRUB configuration. Have a look in /etc/grub.d/ for added and changed files.

To find potentially changed files use:

pacman -Qkk grub

then find out which one you edited.

And/or, create a paste with /boot/grub/ (as suggested in the output).


heres is the output (pacman -Qkk grub) from that last cmd

backup file: grub: /etc/default/grub (Modification time mismatch)
backup file: grub: /etc/default/grub (Size mismatch)
warning: grub: /etc/grub.d/10_linux (Modification time mismatch)
warning: grub: /etc/grub.d/10_linux (Size mismatch)
warning: grub: /etc/grub.d/30_os-prober (No such file or directory)
warning: grub: /etc/grub.d/40_custom (No such file or directory)
grub: 1092 total files, 3 altered files

1 Like

What does that output tell you?

1 Like

ok, the only file i edited was to enable coolbits to turn on my gpu's fans besides formatt from
garuda deepin on that drive and reinstall xfce . then i did the coolbits file in grub.d
and later the remove of win disk 2 from grub with customizer.
So after doing this: sudo grub-mkconfig -o /boot/grub/grub.cfg from you.
I su in dir and rename current grub to get the file after renam to grub to run right?

The output tells you that there are files from the GRUB package which have been modified since installation (i.e. edited) and some that have been removed.

I'd suggest re-installing GRUB to put those missing files back into place:

sudo pacman -S grub

then check whether the files have been corrected:

pacman -Qkk grub

thank you.