How to Install Fedora 37 with Snapper and Grub-Btrfs for Full System Rollback

Поділитися
Вставка
  • Опубліковано 10 гру 2024

КОМЕНТАРІ • 30

  • @j.m.mendez6091
    @j.m.mendez6091 Рік тому +1

    Working flawlessly on fedora 38. Keep up the good work brother!

  • @sudosomething
    @sudosomething Рік тому +1

    Best tutorial online, most comprehensive and detailed especially when coupled with the text version on your website. I appreciate your work, thank you for sharing this. Liked and Subscribed.

    • @SysGuides
      @SysGuides  Рік тому

      I'm glad it was useful. Also, thank you for subscribing. 😊😊

    • @sudosomething
      @sudosomething Рік тому

      @@SysGuides Can confirm setup, snapshots and rollbacks all working great on a Dell XPS laptop with Fedora 37, Gnome, Wayland, +secure boot on, +NVIDIA card (drivers installed and working). 👍 Any tips on how to add a configuration to grub so text appears larger during startup on high ppi monitors? I've tried from some info in forums but couldn't get to work.

    • @SysGuides
      @SysGuides  Рік тому +1

      @@sudosomething I believe you're referring to the GRUB menu's text size. Try this:
      Create a directory for fonts.
      # 𝚖𝚔𝚍𝚒𝚛 -𝚙 /𝚋𝚘𝚘𝚝/𝚐𝚛𝚞𝚋𝟸/𝚏𝚘𝚗𝚝𝚜/
      Generate a font for GRUB. I've used here liberation mono font with 24 size. You can try different font and size.
      # 𝚐𝚛𝚞𝚋𝟸-𝚖𝚔𝚏𝚘𝚗𝚝 --𝚘𝚞𝚝𝚙𝚞𝚝=/𝚋𝚘𝚘𝚝/𝚐𝚛𝚞𝚋𝟸/𝚏𝚘𝚗𝚝𝚜/𝚞𝚗𝚒𝚌𝚘𝚍𝚎.𝚙𝚏𝟸 --𝚜𝚒𝚣𝚎=𝟸𝟺 /𝚞𝚜𝚛/𝚜𝚑𝚊𝚛𝚎/𝚏𝚘𝚗𝚝𝚜/𝚕𝚒𝚋𝚎𝚛𝚊𝚝𝚒𝚘𝚗-𝚖𝚘𝚗𝚘/𝙻𝚒𝚋𝚎𝚛𝚊𝚝𝚒𝚘𝚗𝙼𝚘𝚗𝚘-𝚁𝚎𝚐𝚞𝚕𝚊𝚛.𝚝𝚝𝚏
      Change GRUB_TERMINAL_OUTPUT from 'console' to 'gfxterm'
      # 𝚟𝚒𝚖 /𝚎𝚝𝚌/𝚍𝚎𝚏𝚊𝚞𝚕𝚝/𝚐𝚛𝚞𝚋
      𝙶𝚁𝚄𝙱_𝚃𝙴𝚁𝙼𝙸𝙽𝙰𝙻_𝙾𝚄𝚃𝙿𝚄𝚃="𝚐𝚏𝚡𝚝𝚎𝚛𝚖"
      Then, update the grub.cfg
      # 𝚐𝚛𝚞𝚋𝟸-𝚖𝚔𝚌𝚘𝚗𝚏𝚒𝚐 -𝚘 /𝚋𝚘𝚘𝚝/𝚐𝚛𝚞𝚋𝟸/𝚐𝚛𝚞𝚋.𝚌𝚏𝚐
      And reboot. Hope this works. 🙂

    • @sudosomething
      @sudosomething Рік тому

      @@SysGuides Yes. TYVM will try it :D

    • @sudosomething
      @sudosomething Рік тому +1

      @@SysGuides Didn't realise google's roboto;serif (web?)font doesn't copy well into a linux terminal and results in "command not found". Took me a while to figure out 🤣despite that, nothing seemed to change but did lead me to a solution ->
      $ nano /etc/default/grub
      ~~~
      $ GRUB_TERMINAL_OUTPUT="gfxterm"
      $ GRUB_GFXMODE=1920x1200x24,1024x768x32,640x480
      $ GRUB_GFXPAYLOAD=keep
      $ GRUB_TERMINAL=gfxterm
      ~~~
      $ grub2-mkconfig -o /boot/grub2/grub.cfg

  • @MistaWalid
    @MistaWalid Рік тому +2

    Perfect tutorial with attention to details. Thx for this!

    • @SysGuides
      @SysGuides  Рік тому +1

      😊 Thanks. I'm glad you found it useful.

  • @DeeperSoul
    @DeeperSoul Рік тому

    I have followed all steps for Fedora 38 but after reboot I stuck at "emergency mode due initrd-switch-root.service entered failed state"
    the worst I can't chroot to recover.
    The difference between my setup any your is just adding @ for root and home when manual partitioning and adjusting .snapshots subvolume to this path in fstab.
    That's not problem, right?

    • @SysGuides
      @SysGuides  Рік тому +1

      That IS the issue. You should install the root (/) on the main volume, not a subvolume. I'm currently recording a video for Fedora 38, which I'll post in a few days. Please refer to my text version of the same guide in the meantime. This is the link.
      sysguides.com/install-fedora-38-with-snapshot-and-rollback-support/

    • @DeeperSoul
      @DeeperSoul Рік тому

      @@SysGuides hmm then I'll try in a few hours and gonna write ✍️ the results.
      hope this time will achieve it 😅

  • @DrOptix
    @DrOptix Рік тому

    After setting this on a UEFI machine I got unknown tpm error from grub-core. And it seems I can't boot the current version of the kernel too... I'll try to figure it out. Anyway if you have any tips and tricks let me know.

    • @SysGuides
      @SysGuides  Рік тому

      You should try this: www.reddit.com/r/Fedora/comments/wtctyy/grub_unknown_tpm_error/
      Hope it works...

    • @sudosomething
      @sudosomething Рік тому

      @@SysGuides I had same error which prevented me from booting. I think (for me) it was the bios detecting that the roll back into a snapshot was a 'tamper'. I turned this off in bios and I could boot into snapshot. After the stage in guide $sudo snapper --ambit classic rollback [snapshot number] it booted fine and I could turn TPM back on.

  • @pichincho7
    @pichincho7 Рік тому

    Me gustaria un tutorial de las mismas caracteristicas pero para debian 12.

    • @SysGuides
      @SysGuides  Рік тому +1

      Not familiar with Debian. I'm not sure if it's possible, but I'll give it a shot.

  • @heshamkhalil2215
    @heshamkhalil2215 2 роки тому

    is it okay to create the /var/log subvolume after configuring snapper

    • @SysGuides
      @SysGuides  2 роки тому

      Sure, you can.

    • @heshamkhalil2215
      @heshamkhalil2215 2 роки тому

      @@SysGuides thank you so much

    • @SysGuides
      @SysGuides  2 роки тому

      @@heshamkhalil2215 You're Welcome

    • @SysGuides
      @SysGuides  2 роки тому

      Did you follow these steps?
      $ 𝚜𝚞𝚍𝚘 𝚖𝚟 -𝚟 /𝚟𝚊𝚛/𝚕𝚘𝚐 /𝚟𝚊𝚛/𝚕𝚘𝚐-𝚘𝚕𝚍
      $ 𝚜𝚞𝚍𝚘 𝚋𝚝𝚛𝚏𝚜 𝚜𝚞𝚋𝚟𝚘𝚕𝚞𝚖𝚎 𝚌𝚛𝚎𝚊𝚝𝚎 /𝚟𝚊𝚛/𝚕𝚘𝚐
      $ 𝚜𝚞𝚍𝚘 𝚌𝚙 -𝚊𝚛𝚟 /𝚟𝚊𝚛/𝚕𝚘𝚐-𝚘𝚕𝚍/. /𝚟𝚊𝚛/𝚕𝚘𝚐/
      $ 𝚜𝚞𝚍𝚘 𝚛𝚎𝚜𝚝𝚘𝚛𝚎𝚌𝚘𝚗 -𝚁𝙵𝚟 /𝚟𝚊𝚛/𝚕𝚘𝚐
      $ 𝚜𝚞𝚍𝚘 𝚛𝚖 -𝚛𝚟𝚏 /𝚟𝚊𝚛/𝚕𝚘𝚐-𝚘𝚕𝚍
      and update /etc/fstab?
      sysguides.com/install-fedora-37-with-snapper-and-grub-btrfs/

  • @DirieGeek
    @DirieGeek 2 роки тому

    Thanks @SysGuides
    After I followed you step by step on minute 15:57 I have got this error and seen blow.
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Adding boot menu entry for UEFI Firmware Settings ...
    Detecting snapshots ...
    /etc/grub.d/41_snapshots-btrfs: line 569: /boot/grub/grub-btrfs.new: No such file or directory
    any clue?
    Thanks

    • @SysGuides
      @SysGuides  2 роки тому

      Hello, Ahmed Dirie. Did you switch to the Add-systemd-volatile branch before updating grub.cfg?
      Would you please check again this time using the text version of the video. sysguides.com/install-fedora-37-with-snapper-and-grub-btrfs/#3-4-install-and-configure-grub-btrfs

  • @FlorinTanasa
    @FlorinTanasa Рік тому

    @SysGuides very good tutorial, you have any ideea why I can't populated the grub menu with my snapshoot after the command sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    [sudo] parola pentru florin:
    Generating grub configuration file ...
    mount: /var/lib/os-prober/mount: mount(2) system call failed: No such file or directory.
    dmesg(1) may have more information after failed mount system call.
    Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for UEFI Firmware Settings ...
    Detecting snapshots ...
    strings: '/tmp/grub-btrfs.z2oBbRXzjb/snapshots/34/snapshot/usr/bin/init': No such file
    Found snapshot: 2023-01-10 18:39:52 | snapshots/34/snapshot | post | /usr/bin/dnf install ps_mem |
    strings: '/tmp/grub-btrfs.z2oBbRXzjb/snapshots/33/snapshot/usr/bin/init': No such file
    Found snapshot: 2023-01-10 18:39:49 | snapshots/33/snapshot | pre | /usr/bin/dnf install ps_mem |
    strings: '/tmp/grub-btrfs.z2oBbRXzjb/snapshots/2/snapshot/usr/bin/init': No such file
    Found snapshot: 2023-01-07 18:55:38 | snapshots/2/snapshot | single | Manual Snapshot |
    strings: '/tmp/grub-btrfs.z2oBbRXzjb/snapshots/1/snapshot/usr/bin/init': No such file
    Found snapshot: 2023-01-06 19:12:14 | snapshots/1/snapshot | single | Manual Snapshot |
    Found 4 snapshot(s)
    Unmount /tmp/grub-btrfs.z2oBbRXzjb .. Success
    done

    • @SysGuides
      @SysGuides  Рік тому

      Sorry for the delayed response. My guess is that the missing file in the /tmp directory is the cause of this issue. The issue has also been experienced by one of my other reader sysguides.com/install-fedora-37-with-snapper-and-grub-btrfs/#comment-292.
      Did you attempt to roll back to a different snapshot after you have already rolled back to one?

    • @FlorinTanasa
      @FlorinTanasa Рік тому

      @@SysGuides Thanks for your answer.
      I fix it, now my grub list is populated with snapshot:
      I wrote in /etc/default/grub-btrfs/config
      GRUB_BTRFS_GRUB_DIRNAME="/boot/efi/EFI/fedora"
      then in /etc/grub.d/40_custom
      set btrfs_relative_path="yes"
      and after that I run command
      sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
      How I say, appear my snapshots in grub menu list but the result for above command is the same,
      when I have time is necessary to investigate what scripts do that result:
      sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
      Generating grub configuration file ...
      mount: /var/lib/os-prober/mount: mount(2) system call failed: No such file or directory.
      dmesg(1) may have more information after failed mount system call.
      Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
      Adding boot menu entry for UEFI Firmware Settings ...
      Detecting snapshots ...
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/44/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-14 11:41:24 | snapshots/44/snapshot | post | /usr/bin/dnf update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/43/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-14 11:41:19 | snapshots/43/snapshot | pre | /usr/bin/dnf update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/42/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-13 20:02:23 | snapshots/42/snapshot | post | /usr/bin/dnf install htop |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/41/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-13 20:02:21 | snapshots/41/snapshot | pre | /usr/bin/dnf install htop |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/40/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-13 18:47:34 | snapshots/40/snapshot | post | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/39/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-13 18:47:25 | snapshots/39/snapshot | pre | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/38/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-12 17:22:30 | snapshots/38/snapshot | post | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/37/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-12 17:21:43 | snapshots/37/snapshot | pre | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/36/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-11 17:20:12 | snapshots/36/snapshot | post | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/35/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-11 17:19:57 | snapshots/35/snapshot | pre | /usr/bin/yum update |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/34/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-10 18:39:52 | snapshots/34/snapshot | post | /usr/bin/dnf install ps_mem |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/33/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-10 18:39:49 | snapshots/33/snapshot | pre | /usr/bin/dnf install ps_mem |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/2/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-07 18:55:38 | snapshots/2/snapshot | single | Manual Snapshot |
      strings: '/tmp/grub-btrfs.Yase6Le6Xx/snapshots/1/snapshot/usr/bin/init': No such file
      Found snapshot: 2023-01-06 19:12:14 | snapshots/1/snapshot | single | Manual Snapshot |
      Found 14 snapshot(s)
      Unmount /tmp/grub-btrfs.Yase6Le6Xx .. Success
      done