All Projects → Antynea → Grub Btrfs

Antynea / Grub Btrfs

Licence: gpl-3.0
Include btrfs snapshots at boot options. (Grub menu)

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Grub Btrfs

adlibre-backup
High performance rsync backup utilising BTRFS / ZFS filesystem features
Stars: ✭ 35 (-77.12%)
Mutual labels:  snapshot, btrfs
grub-iso-multiboot
grab a .iso, put in a folder, boot it up.
Stars: ✭ 53 (-65.36%)
Mutual labels:  boot, grub
BaNG
Backup Next Generation for Linux & Mac using rsync (support hardlinks and btrfs snapshots), Web-Frontend, Statistics, History-Merger)
Stars: ✭ 28 (-81.7%)
Mutual labels:  snapshot, btrfs
Rufus
The Reliable USB Formatting Utility
Stars: ✭ 16,917 (+10956.86%)
Mutual labels:  grub, boot
Btrbk
Tool for creating snapshots and remote backups of btrfs subvolumes
Stars: ✭ 605 (+295.42%)
Mutual labels:  btrfs, snapshot
arch-config
Scripts and Ansible playbook to setup Arch Linux on ZFS.
Stars: ✭ 36 (-76.47%)
Mutual labels:  boot, btrfs
buddy-linux
Do you remember "Wubi Ubuntu Installer"? This project is both a replacement and an improvement of Wubi. You will be able to install your Debian (or derived) distribution on a PC without repartitioning it, simply by using a secondary/external boot device (like a USB drive).
Stars: ✭ 17 (-88.89%)
Mutual labels:  boot, grub
arch-btrfs-install-guide
Arch Linux installation guide with btrfs and snapper, this guide is based on the information from unicks.eu guide https://www.youtube.com/watch?v=TKdZiCTh3EM, and Arch Linux UEFI step-by-step installation guide https://www.youtube.com/watch?v=dOXYZ8hKdmc from ALU.
Stars: ✭ 32 (-79.08%)
Mutual labels:  btrfs, grub
Glim
GRUB Live ISO Multiboot
Stars: ✭ 452 (+195.42%)
Mutual labels:  grub, boot
Dotfiles
Configuration for Arch Linux, sway, kitty, kakoune, zsh and more + scripted installation guide
Stars: ✭ 385 (+151.63%)
Mutual labels:  btrfs, grub
btrfs-backup
A simple, flexible script for versioned backups using btrfs and rsync
Stars: ✭ 59 (-61.44%)
Mutual labels:  snapshot, btrfs
Kindd
A kindful dd, written in qt-quick.
Stars: ✭ 93 (-39.22%)
Mutual labels:  grub, boot
Aio Boot
AIO Boot is an All-in-One bootable software for USB and HDD. Is one of the best Multiboot USB Creator for Windows.
Stars: ✭ 300 (+96.08%)
Mutual labels:  grub, boot
Multibootusb
Create multiboot live Linux on a USB disk...
Stars: ✭ 1,042 (+581.05%)
Mutual labels:  grub, boot
Btrfs Sxbackup
Incremental btrfs snapshot backups with push/pull support via SSH
Stars: ✭ 105 (-31.37%)
Mutual labels:  btrfs, snapshot
Liveusb Builder
A script suite to create multiboot USB stick for GNU/Linux distributions
Stars: ✭ 118 (-22.88%)
Mutual labels:  grub
Tunnel
Use Ngrok In Termux With Advanced Options
Stars: ✭ 133 (-13.07%)
Mutual labels:  boot
Xps 9360 Macos
XPS 13 (9360) with macOS Catalina
Stars: ✭ 118 (-22.88%)
Mutual labels:  boot
Booster
Fast and secure initramfs generator
Stars: ✭ 113 (-26.14%)
Mutual labels:  boot
Boot
Build tooling for Clojure.
Stars: ✭ 1,722 (+1025.49%)
Mutual labels:  boot

GitHub release

grub-btrfs

This is a version 4.xx of grub-btrfs

BTC donation address: 1Lbvz244WA8xbpHek9W2Y12cakM6rDe5Rt

Description :

Improves Grub by adding "btrfs snapshots" to the Grub menu.

You can boot your system on a "snapshot" from the Grub menu.
Supports manual snapshots, snapper, timeshift ...

Warning: booting on read-only snapshots can be tricky

If you choose to do it, /var/log or even /var must be on a separate subvolume.
Otherwise, make sure your snapshots are writeable.
See this ticket for more info.

This project includes its own solution.
Refer to the documentation.

What does grub-btrfs v4.xx do :

  • Automatically List snapshots existing on root partition (btrfs).
  • Automatically Detect if "/boot" is in separate partition.
  • Automatically Detect kernel, initramfs and intel/amd microcode in "/boot" directory on snapshots.
  • Automatically Create corresponding "menuentry" in grub.cfg
  • Automatically detect snapper and use snapper's snapshot description if available.
  • Automatically generate grub.cfg if you use the provided systemd service.

Installation :

Arch Linux

pacman -S grub-btrfs

Manual

  • Run make install or look into Makefile for instructions on where to put each file.

NOTE: Generate your Grub menu after installation for the changes to take effect.
On Arch Linux use grub-mkconfig -o /boot/grub/grub.cfg.

Customization :

You have the possibility to modify many parameters in /etc/default/grub-btrfs/config.
See config file for more information.

Automatically update grub

1- If you would like grub-btrfs menu to automatically update when a snapshot is created or deleted:

  • Use systemctl enable grub-btrfs.path.
    • grub-btrfs.path automatically (re)generates grub-btrfs.cfg when a modification appears in /.snapshots mount point (by default).
    • If the /.snapshots mount point is already mounted, then use systemctl start grub-btrfs.path to start monitoring.
      Otherwise, the unit will automatically start monitoring when the mount point will be available.
  • If your snapshots location aren't mounted in /.snapshots, you must modify grub-btrfs.path unit using
    systemctl edit --full grub-btrfs.path and run systemctl reenable grub-btrfs.path for changes take effect.
    To find out the name of the .mount unit
    use systemctl list-units -t mount.
    • For example: Timeshift mounts its snapshot folder in /run/timeshift/backup/timeshift-btrfs/snapshots.

      Use systemctl edit --full grub-btrfs.path. Then replace the whole block by:

       [Unit]
       Description=Monitors for new snapshots
       DefaultDependencies=no
       Requires=run-timeshift-backup.mount
       After=run-timeshift-backup.mount
       BindsTo=run-timeshift-backup.mount
      
       [Path]
       PathModified=/run/timeshift/backup/timeshift-btrfs/snapshots
      
       [Install]
       WantedBy=run-timeshift-backup.mount
      

      Then save and finally run systemctl reenable grub-btrfs.path for changes take effect.
      Optional:
      If the /run/timeshift/backup/timeshift-btrfs/snapshots mount point is already mounted,
      then use systemctl start grub-btrfs.path to start monitoring.
      Otherwise, the unit will automatically start monitoring when the mount point will be available.

    • You can view your change to systemctl cat grub-btrfs.path.

    • To revert change use systemctl revert grub-btrfs.path.

2- If you would like grub-btrfs menu to automatically update on system restart/shutdown:
Look at this comment
Currently not implemented

Warning :

by default, grub-mkconfig command is used.
Might be grub2-mkconfig on some systems (Fedora ...).
Edit GRUB_BTRFS_MKCONFIG variable in /etc/default/grub-btrfs/config file to reflect this.

Special thanks for assistance and contributions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].