Generated 600 total GRUB entries. You might experience issues loading snapshots menu in GRUB

Hey there,
I've noticed the following messages a few times already: Generated 600 total GRUB entries. You might experience issues loading snapshots menu in GRUB. and right below that it sais Found 50 snapshot(s)
What exactly does that mean? I checked snapper-tools and only about 15 pacman snapshots should be kept, but why is it giving me this message then? The grub snapper menu is awfully slow, even with just these 15 entries.
Sometimes I even get some syntax error warnings after the above warning, but these don't seem to be of relevance so I stayed lazy and didn't report that on their github as advised.
So what is this about?
Thanks!

OOps forgot my inxi:

System:
  Kernel: 5.18.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=6e6211b4-cfb4-44c0-8970-5e4a826e0c5e rw [email protected]
    rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=1 loglevel=3 sysrq_always_enabled=1
    iommu=soft
  Desktop: wayfire v: 0.8.0-b8211e3b info: waybar vt: 1 dm: greetd
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: AX370-Gaming 3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: AX370-Gaming 3-CF v: x.x
    serial: <superuser required> UEFI: American Megatrends v: F50a
    date: 11/27/2019
CPU:
  Info: model: AMD Ryzen 5 2600X bits: 64 type: MT MCP arch: Zen+ gen: 2
    built: 2018-21 process: GF 12nm family: 0x17 (23) model-id: 8 stepping: 2
    microcode: 0x800820D
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 4036 high: 4061 min/max: 2200/3600 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4061 2: 4042
    3: 4058 4: 4023 5: 4052 6: 4055 7: 4034 8: 4042 9: 3991 10: 3980 11: 4053
    12: 4052 bogomips: 86228
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Baffin [Radeon RX 550 640SP / 560/560X] vendor: ASUSTeK
    driver: amdgpu v: kernel arch: GCN 4 process: GF 14nm built: 2016-20 pcie:
    gen: 3 speed: 8 GT/s lanes: 8 ports: active: DVI-D-1,HDMI-A-1 empty: DP-1
    bus-ID: 08:00.0 chip-ID: 1002:67ff class-ID: 0300
  Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-2:3 chip-ID: 046d:0825 class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.2
    compositor: wayfire v: 0.8.0-b8211e3b driver: X: loaded: amdgpu
    unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu d-rect: 3600x1200
    display-ID: 1
  Monitor-1: DVI-D-1 pos: right res: 1920x1200 size: N/A modes: N/A
  Monitor-2: HDMI-A-1 pos: primary,left res: 1680x1050 size: N/A modes: N/A
  OpenGL: renderer: AMD Radeon RX 560 Series (polaris11 LLVM 13.0.1 DRM
    3.46 5.18.7-zen1-1-zen)
    v: 4.6 Mesa 22.1.2 direct render: Yes
Audio:
  Device-1: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / 560/560X]
    vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 1-2:3 pcie:
    chip-ID: 046d:0825 class-ID: 0102 gen: 3 speed: 8 GT/s serial: <filter>
    lanes: 8 bus-ID: 08:00.1 chip-ID: 1002:aae0 class-ID: 0403
  Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 0a:00.3
    chip-ID: 1022:1457 class-ID: 0403
  Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
  Device-4: C-Media USB Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-4:4 chip-ID: 0d8c:9700
    class-ID: 0300 serial: <filter>
  Sound Server-1: ALSA v: k5.18.7-zen1-1-zen running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 16.1 running: no
  Sound Server-4: PipeWire v: 0.3.52 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Broadcom BCM20702A0 Bluetooth 4.0 type: USB driver: btusb v: 0.8
    bus-ID: 1-3:4 chip-ID: 0a5c:21e8 class-ID: fe01 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 2.96 TiB used: 1.58 TiB (53.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 4B6Q scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD20EFRX-68EUZN0 size: 1.82 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A82 scheme: GPT
Partition:
  ID-1: / raw-size: 195.03 GiB size: 195.03 GiB (100.00%)
    used: 158.4 GiB (81.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
  ID-2: /boot/efi raw-size: 301 MiB size: 300.4 MiB (99.79%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 736.18 GiB size: 736.18 GiB (100.00%)
    used: 193.31 GiB (26.3%) fs: btrfs dev: /dev/sda3 maj-min: 8:3
  ID-4: /var/log raw-size: 195.03 GiB size: 195.03 GiB (100.00%)
    used: 158.4 GiB (81.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
  ID-5: /var/tmp raw-size: 195.03 GiB size: 195.03 GiB (100.00%)
    used: 158.4 GiB (81.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.3 GiB used: 6 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 52.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1526
Info:
  Processes: 1899 Uptime: 3h 11m wakeups: 0 Memory: 31.3 GiB
  used: 5.62 GiB (18.0%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: 2095 apt: 0
  pacman: 2077 lib: 502 flatpak: 18 Shell: Zsh v: 5.9 running-in: alacritty
  inxi: 3.3.19
Garuda (2.6.4-2):
  System install date:     2021-12-28
  Last full system update: 2022-06-30 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:

Just FYI, don't forget to reboot.

For the snpashots, is it possible you have other snapshots elsewhere in a location that Snapper does not scan for?

I believe if you post output of

sudo btrfs subvol list /

it may give an idea, but I don't know how Snapper works as I don't use it so maybe there are some hidden stuff...

2 Likes

Yeah I rebooted right afterwards. Rather forced by my system since it decided to randomly start lagging af. I was lucky I could still type reboot.

Anyways: The output of the subvol list command just counts 65 lines, 15 of which don't seem to be any snapshots. Some of them are named "restore_backup_@_..." Are these snapshots of backups I restored previously? I didn't expect grub-btrfs or snapper-tools to save them

They probably are judging by the start of the name, but posting here the entire output using copy-paste command from your terminal to here would give us a much better view of what you got in there.

Well, if you insist on spam, here you go:

ID 256 gen 97738 top level 5 path [email protected]_182409354
ID 257 gen 142531 top level 5 path @root
ID 258 gen 97728 top level 5 path @srv
ID 259 gen 144234 top level 5 path @cache
ID 260 gen 144318 top level 5 path @log
ID 261 gen 144299 top level 5 path @tmp
ID 262 gen 144268 top level 3165 path .snapshots
ID 348 gen 16423 top level 262 path .snapshots/86/snapshot
ID 1446 gen 67564 top level 5 path [email protected]_160205159
ID 1804 gen 71144 top level 5 path [email protected]_150712906
ID 1870 gen 118262 top level 5 path [email protected]_182657644
ID 2706 gen 118262 top level 5 path [email protected]_215305112
ID 2796 gen 118262 top level 5 path [email protected]_214339986
ID 3136 gen 118262 top level 5 path [email protected]_221411286
ID 3152 gen 118262 top level 5 path [email protected]_150411233
ID 3165 gen 144325 top level 5 path @
ID 3457 gen 118303 top level 262 path .snapshots/3185/snapshot
ID 3557 gen 121658 top level 262 path .snapshots/3285/snapshot
ID 3757 gen 129395 top level 262 path .snapshots/3485/snapshot
ID 3914 gen 136681 top level 262 path .snapshots/3642/snapshot
ID 3962 gen 138740 top level 262 path .snapshots/3690/snapshot
ID 3985 gen 139539 top level 262 path .snapshots/3713/snapshot
ID 4018 gen 141077 top level 262 path .snapshots/3746/snapshot
ID 4031 gen 142202 top level 262 path .snapshots/3759/snapshot
ID 4045 gen 142515 top level 262 path .snapshots/3773/snapshot
ID 4046 gen 142516 top level 262 path .snapshots/3774/snapshot
ID 4047 gen 142525 top level 262 path .snapshots/3775/snapshot
ID 4048 gen 142527 top level 262 path .snapshots/3776/snapshot
ID 4051 gen 142659 top level 262 path .snapshots/3779/snapshot
ID 4052 gen 142740 top level 262 path .snapshots/3780/snapshot
ID 4053 gen 142786 top level 262 path .snapshots/3781/snapshot
ID 4054 gen 142812 top level 262 path .snapshots/3782/snapshot
ID 4055 gen 142813 top level 262 path .snapshots/3783/snapshot
ID 4056 gen 142820 top level 262 path .snapshots/3784/snapshot
ID 4057 gen 142821 top level 262 path .snapshots/3785/snapshot
ID 4058 gen 142853 top level 262 path .snapshots/3786/snapshot
ID 4059 gen 142936 top level 262 path .snapshots/3787/snapshot
ID 4060 gen 143047 top level 262 path .snapshots/3788/snapshot
ID 4061 gen 143122 top level 262 path .snapshots/3789/snapshot
ID 4062 gen 143208 top level 262 path .snapshots/3790/snapshot
ID 4063 gen 143254 top level 262 path .snapshots/3791/snapshot
ID 4064 gen 143304 top level 262 path .snapshots/3792/snapshot
ID 4065 gen 143385 top level 262 path .snapshots/3793/snapshot
ID 4066 gen 143441 top level 262 path .snapshots/3794/snapshot
ID 4067 gen 143512 top level 262 path .snapshots/3795/snapshot
ID 4068 gen 143603 top level 262 path .snapshots/3796/snapshot
ID 4069 gen 143626 top level 262 path .snapshots/3797/snapshot
ID 4070 gen 143692 top level 262 path .snapshots/3798/snapshot
ID 4071 gen 143779 top level 262 path .snapshots/3799/snapshot
ID 4072 gen 143848 top level 262 path .snapshots/3800/snapshot
ID 4073 gen 143907 top level 262 path .snapshots/3801/snapshot
ID 4074 gen 143979 top level 262 path .snapshots/3802/snapshot
ID 4075 gen 143980 top level 262 path .snapshots/3803/snapshot
ID 4076 gen 143984 top level 262 path .snapshots/3804/snapshot
ID 4077 gen 144017 top level 262 path .snapshots/3805/snapshot
ID 4078 gen 144085 top level 262 path .snapshots/3806/snapshot
ID 4079 gen 144160 top level 262 path .snapshots/3807/snapshot
ID 4080 gen 144207 top level 262 path .snapshots/3808/snapshot
ID 4081 gen 144210 top level 262 path .snapshots/3809/snapshot
ID 4082 gen 144218 top level 262 path .snapshots/3810/snapshot
ID 4083 gen 144219 top level 262 path .snapshots/3811/snapshot
ID 4084 gen 144224 top level 262 path .snapshots/3812/snapshot
ID 4085 gen 144225 top level 262 path .snapshots/3813/snapshot
ID 4086 gen 144239 top level 262 path .snapshots/3814/snapshot
ID 4087 gen 144267 top level 262 path .snapshots/3815/snapshot

Good spam, good spam. :smiley:

I believe all that you got in.snapshots are individual snapshots.
Now before I say something that TNE would call me liar for lolll, for the little I know about Snapper it's quite possible the restore_backup* are backups of the subvol you were into when you initiated a restore of a snapshot (most probably one of those in .snapshots).
So technically they would be snapshots as well.

grub-btrfs probably looks for snapshots only into .snapshots so my guess is in your /boot/grub/grub-btrfs.cfg you have all those, what 50?, snapshots listed in .snapshots.

Not sure about your 15 pacman snapshots to keep, maybe you took manual snapshots in Snapper and it doesn't clean them up cuz they are not pacman's?
Also not sure why the error msg says 600 grub entries. But the 50 snapshots grub tells you about are those listed in .snapshots, I would bet.

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