Links

  1. Archcraft
  2. Btrfs

0. Intro

Hi all, in this video i show how to install Archcraft with btrfs, snapshots, grub-btrfs, dual boot with Windows 10.

  1. The boot mode will be efi;
  2. I’m assuming you already have the latest usb stick with the Archcraft Linux ISO.
  3. You need install Windows 10 first.

I hope you enjoy!

1. Bios Considerations

  1. Reset BIOS to factory default and reboot.
  2. Disable fastboot and secure boot in BIOS settings.
  3. Make sure that SATA controller is set to AHCI mode in BIOS settings.

2. Prepare Windows

Follow the video…

3. Install Archcraft

Follow instructions from video…

3.1 Update and Upgrade

[Subtitle 3.1.1] Don´t worry about Windows 10 option in grub menu now. We will fix this soon.

$ sudo pacman -S archlinux-keyring
$ sudo pacman-key --populate
$ sudo pacman -Syyu

3.2 Add module btrfs

Edit the file /etc/mkinitcpio.conf and change the line 10 to:

$ sudo vim /etc/mkinitcpio.conf
MODULES=(crc32c btrfs)

Save the file and run the following command:

$ sudo mkinitcpio -p linux

4. Install and Config Snapper

[subtitle 4.1] We will install snapper and create config for root snapshots.

$ sudo pacman install snapper
$ sudo snapper -c root create-config /

Edit /etc/snapper/configs/root

$ sudo 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"

And save the file.

[subtitle 4.2] 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

5. Fstab

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

$ sudo vim /etc/fstab

Copy the last line and modify it to the @snapshots subvolume you created.

Save the file and type:

$ sudo mount -a
$ sudo btrfs subvolume list /
$ lsblk

6. Install snapper-gui

$ yay -S snapper-gui

7. Install grub-btrfs

[Subtitle 6.1] The pacman will ask about remove archcraft-grub, you need type “y”.

$ sudo pacman -S grub-btrfs

Edit /etc/default/grub:

$ sudo vim /etc/default/grub

And add the following line:

GRUB_DISABLE_OS_PROBER=false

Now, reinstall grub with.

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

And you will see Windows 10 in grub options menu.

8. Start the Services

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

9. Create your First Snapshot

Follow the video…

10. Finish