LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   GRUB doesn't boot a manual snapshot entry (https://www.linuxquestions.org/questions/suse-opensuse-60/grub-doesnt-boot-a-manual-snapshot-entry-4175724905/)

JKostaRibeiro 05-09-2023 02:04 PM

GRUB doesn't boot a manual snapshot entry
 
Hello!

I am using openSUSE Tumbleweed and I want to make use of snasphots, without using snapper.

So, I created a manual snapshot of my system:

Code:

sudo btrfs subvol snapshot /mnt/@ /mnt/@snapshots/1/snapshot/
I added this entry to /etc/grub.d/40_custom:

Code:

menuentry 'openSUSE Tumbleweed Maio'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-58ce4ca7-01f9-4a45-aa77-b7e6567b7f69' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd0,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  58ce4ca7-01f9-4a45-aa77-b7e6567b7f69
        else
          search --no-floppy --fs-uuid --set=root 58ce4ca7-01f9-4a45-aa77-b7e6567b7f69
        fi
        echo    'Loading Linux 6.3.1-1-default ...'
        linux  /@snapshots/1/snapshot/boot/vmlinuz-6.3.1-1-default root=UUID=58ce4ca7-01f9-4a45-aa77-b7e6567b7f69 rootflags=subvol="@snapshots/1/snapshot" ${extra_cmdline} splash=silent quiet security=apparmor nosgx mitigations=auto
        echo    'Loading initial ramdisk ...'
        initrd  /@snapshots/1/snapshot/boot/initrd-6.3.1-1-default
}

I regenerated grub.cfg through YaST

Then, when I tried to boot the snapshot from GRUB menu but I get this error message:

https://postimg.cc/4n9LJX4d

colorpurple21859 05-11-2023 10:24 PM

The error indicates either the partition or path is wrong. You may be able to figure out what is wrong by using ls at the grub> prompt by pressing c at the grub menu.

mrmazda 05-12-2023 01:36 AM

OP's "duplicate" thread.

JKostaRibeiro 05-12-2023 07:41 AM

Quote:

Originally Posted by colorpurple21859 (Post 6430356)
The error indicates either the partition or path is wrong. You may be able to figure out what is wrong by using ls at the grub> prompt by pressing c at the grub menu.

I did what you suggested and everything is correct.


All times are GMT -5. The time now is 03:14 PM.