#Links

  1. Manjaro
  2. Btrfs

0. Intro

Hi all, in this video i show how to install Manjaro with btrfs, snapshots and Grub-Btrfs.

  1. The boot mode will be efi;
  2. I’m assuming you already have the usb stick with the Manjaro Linux ISO.
  3. Buggie will be Desktop Environment in this case.

I hope you enjoy!

1. Install

[Subtitle 01] Any moment you can access the site in description and see every command i gave here.

[Subtitle 02] I will create 3 partitions. [Show partition scheme image]

[Subtitle 03] I’m assuming you upgraded your system in order to continue. I

2. Enable AUR

Folow the video…

3. Install and Config Snapper

$ sudo pamac install snapper vim
$ sudo snapper -c root create-config /

Edit /etc/snapper/configs/root

[subtitle 04] We will create snapper config for root snapshots.

$ vim /etc/snapper/configs/root

And put your username in:

ALLOW_USERS="[yourusername]"

Change the folowing lines to:

TIMELINE_LIMIT_HOURLY="5"
TIMELINE_LIMIT_DAYLY="7"
TIMELINE_LIMIT_WEEKLY="0"
TIMELINE_LIMIT_MONTHLY="0"
TIMELINE_LIMIT-YEARLY="0"

[subtitle 05] If you want know about this parameters, you can visit the site in description.


$ sudo btrfs subvolume delete /.snapshots
$ sudo btrfs subvolume create /@snapshots
$ sudo mkdir /.snapshots
$ sudo chmod 750 /.snapshots
$ sudo chown :duckchannel /.snapshots

#mount -o subvol=@/@snapshots /dev/sda3 /.snapshots

4. Fstab

Edit /etc/fstab and add the line for mount /.snapshots:

$ sudo mount -a
$ lsblk

5. Reinstall Grub

Edit /etc/default/grub and comment out the line 3

#GRUB_DEFAULT_TIMEOUT_STYLE=hidden
$ sudo pamac install grub-btrfs efibootmgr dosfstools \
mtools os-prober

$ sudo grub-install --target=x86_64-efi \
--efi_directory=/boot/efi \
--bootloader-id=GRUB
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

6. Install snapper-gui

$ sudo pamac install snapper-gui

7. Start the Services

$ sudo systemctl enable --now snapper-timeline.timer
$ sudo systemctl enable --now snapper-cleanup.timer
$ sudo systemctl enable --now grub-btrfs.path
$ 

8. Create your First Snapshot

Follow the video…

9. Finish