LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-09-2023, 02:04 PM   #1
JKostaRibeiro
Member
 
Registered: Jul 2014
Posts: 70

Rep: Reputation: 2
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

Last edited by JKostaRibeiro; 05-09-2023 at 05:05 PM.
 
Old 05-11-2023, 10:24 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
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.
 
Old 05-12-2023, 01:36 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,851
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
OP's "duplicate" thread.
 
Old 05-12-2023, 07:41 AM   #4
JKostaRibeiro
Member
 
Registered: Jul 2014
Posts: 70

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gaining a better insight to MX Snapshot & Snapshot Repeats / Updates LinWinux antiX / MX Linux 25 12-04-2020 04:50 PM
[SOLVED] snapshot what is a good snapshot app or whatever it takes BW-userx Linux - Hardware 2 06-18-2019 05:54 PM
How to take a Snapshot of a KVM at Location A and Restore that Snapshot at Location B LinuxRSA Linux - Virtualization and Cloud 4 06-22-2016 11:59 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration