I don't get snapshot submenu on grub
waldhef opened this issue · comments
Hello,
the title says it pretty much, I can't see snapshots submenu in grub. I'm on Ubuntu 24.04.
I installed grub-btrfs by git clone. The installation went ok:
sudo make install
Installing
:::::::: ::::::::: ::: ::: ::::::::: ::::::::: ::::::::::: ::::::::: :::::::::: ::::::::
:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
:#: +#++:++#: +#+ +:+ +#++:++#+ +#++:++#++:++ +#++:++#+ +#+ +#++:++#: :#::+::# +#++:++#++
+#+ +#+# +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+
#+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+#
######## ### ### ######## ######### ######### ### ### ### ### ########
For further information visit https://github.com/Antynea/grub-btrfs or read the man page: 'man grub-btrfs'
Installing manpages...
Installing systemd .service file
Installing docs...
Updating the GRUB menu...
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-35-generic
Found initrd image: /boot/initrd.img-6.8.0-35-generic
Found memtest86+ 64bit EFI image: /@/boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
No snapshots found.
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Unmount /tmp/grub-btrfs.EmvY6cJ2DC .. Success
done
Then I installed snapper, which made some snapshots.
grub-update found them also:
sudo update-grub
[sudo] Passwort f\FCr waldemar:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-35-generic
Found initrd image: /boot/initrd.img-6.8.0-35-generic
Found memtest86+ 64bit EFI image: /@/boot/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2024-06-18 15:22:59 | @snapshots/4/snapshot | single | boot |
Found snapshot: 2024-06-18 15:22:27 | @snapshots/3/snapshot | post | apt |
Found snapshot: 2024-06-18 15:22:16 | @snapshots/2/snapshot | pre | apt |
Found snapshot: 2024-06-18 15:22:16 | @snapshots/1/snapshot | pre | apt |
Found 4 snapshot(s)
Unmount /tmp/grub-btrfs.iVBe0yfD6S .. Success
done
But I don't see the snapshot submenu in grub:
Do I something wrong?
Here is also my fstab file:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/disk/by-uuid/3b78e10d-dee6-4fdc-9eb9-14489b55acb0 none swap sw 0 0
# / was on /dev/vda3 during curtin installation
#/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 / btrfs defaults 0 1
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 / btrfs subvol=@,ssd,noatime 0 0
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 /home btrfs subvol=@home,ssd,noatime 0 0
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 /var/cache btrfs subvol=@cache,ssd,noatime 0 0
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 /var/log btrfs subvol=@log,ssd,noatime 0 0
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 /var/tmp btrfs subvol=@tmp,ssd,noatime 0 0
/dev/disk/by-uuid/37940c89-6891-4edb-b44d-2bf057f29495 /.snapshots btrfs subvol=@snapshots,ssd,noatime 0 0
# /boot/efi was on /dev/vda1 during curtin installation
/dev/disk/by-uuid/C74B-3374 /boot/efi vfat defaults 0 1
Hope someone can help me.
I have SOLVED the problem by reinstalling grub, with:
sudo grub-install --boot-directory=/boot --efi-directory=/boot/efi /dev/vda
Now the snapshot submenu appears just fine.
I don't know what the problem with my previously installed grub was, I was using this instruction for installation:
https://blackstewie.com/posts/install-ubuntu-24.04-with-proper-btrfs-setup/
This issue can be closed.