I wrote a Guide on how to install Arch Linux with BTRFS and (almost) Full Disk encrytion

3 years ago by vepro to c/archlinux

This covers obtaining the ISO, connecting to Wi-Fi, partitioning, formatting, mounting, installing, setting up encryption and installing GRUB, in one article. Also includes some tips, like quickly mounting from install medium. Maybe this helps someone.

WheelcharArtist 6 points 3 years ago
  1. with GRUB you can go full disk encryption
  2. why should i use your guide of instead of the wiki?
path: 0 1529174, hotness: undefined, score: 6, children: 3
vepro 3 points 3 years ago

I wrote this more or less for fun; it is slightly more extensive than the installation guide geared for a more advanced setup. The wiki is mentioned in the article as well and is encouraged to be used too

path: 0 1529174 1542345, hotness: undefined, score: 3, children: 0
refurbishedrefurbisher 1 point 3 years ago

AFAIK GRUB itself cannot be encrypted.

path: 0 1529174 1535975, hotness: undefined, score: 1, children: 1
vepro 1 point 3 years ago

The Bootloader itself cannot be encrypted afaik, but the Kernel and initrd can reside on a LUKS Volume (GRUB_USE_CRYPTODISK). But, in order to prevent having to input your passphrase twice, you need to use a keyfile, and I have no experience with that, so I have gone another route. I don't think that a kernel and initrd necessarily need to be encrypted

path: 0 1529174 1535975 1542281, hotness: undefined, score: 1, children: 0
g7s 3 points 3 years ago

Honestly, the best thing I learned was: Need to fix your system through the install medium? Save yourself keystrokes of mounting by just mounting the root subvolume (to /mnt) and then type: mount -aT /mnt/etc/fstab --target-prefix /mnt. This reads your fstab and mounts everything for you.

Thank you so much for it :D

path: 0 1626307, hotness: undefined, score: 3, children: 0
wviana 1 point 3 years ago

Nice birds part. Where did you learned that?

path: 0 1586016, hotness: undefined, score: 1, children: 3
vepro 1 point 3 years ago

What do you mean with "birds part"? Learned from YouTube Videos, Arch Wiki, and experimenting on bare metal and in Virtualbox. Hardest part for me when installing Arch 1st time was partitioning and bootloaders

path: 0 1586016 1587703, hotness: undefined, score: 1, children: 2
wviana 2 points 3 years ago

Sorry. It should be BTRFS

path: 0 1586016 1587703 1610307, hotness: undefined, score: 2, children: 1
vepro 1 point 3 years ago

It was from a GitHub Gist but idk which exactly it was, there are multiple. Keep in mind some files need to have copy-on-write deactivated (swapfile, VirtualBox disk images). The Arch Wiki mentions when copy-on-write should be turned off for a file

path: 0 1586016 1587703 1610307 1622131, hotness: undefined, score: 1, children: 0
housepanther 1 point 3 years ago

With btrfs and zfs virtually being neck and neck in terms of capabilities, is there a reason or application where one should be chosen over the other?

path: 0 1528735, hotness: undefined, score: 1, children: 7
evadzs 4 points 3 years ago

I use BTRFS for the Snapper backup/bootable snapshots

path: 0 1528735 1530776, hotness: undefined, score: 4, children: 0
refurbishedrefurbisher 3 points 3 years ago

BTRFS is included in the kernel and due to licensing issues, ZFS is distributed as a DKMS module that takes forever to build.

path: 0 1528735 1536008, hotness: undefined, score: 3, children: 0
axzxc1236 2 points 3 years ago

Less likely to break when you perform kernel upgrade. (new major version)

path: 0 1528735 1534489, hotness: undefined, score: 2, children: 0
vojel 2 points 3 years ago

Google ZFS licensing and you know why choose btrfs over zfs

path: 0 1528735 1531376, hotness: undefined, score: 2, children: 1
housepanther 1 point 3 years ago

Okay, so it came down to a licensing issue rather than one that is technical. I can definitely get behind that as somebody that will always value true open source, even when then the proprietary solution might be the better one in the short term. Something that is open source can only get better.

path: 0 1528735 1531376 1533246, hotness: undefined, score: 1, children: 0
Molecular0079 1 point 3 years ago

BTRFS still doesn't have working RAID 5 or 6, which basically means its not a viable option for home NAS use unless you're okay with the limitations of RAID-10. Personally I use BTRFS for my system drive and ZFS for my storage pool.

path: 0 1528735 1950089, hotness: undefined, score: 1, children: 0
vepro 1 point 3 years ago

In the Gentoo wiki it is also mentioned that "While it is true that Btrfs is still considered experimental and is growing in stability, the time when Btrfs will become the default filesystem for Linux systems is getting closer.". I don't know how many distros out there use Btrfs by default (never distrohopped), but it seems to become much more widely adopted than zfs.

https://wiki.gentoo.org/wiki/Btrfs#Features

path: 0 1528735 1542441, hotness: undefined, score: 1, children: 0
Molecular0079 1 point 3 years ago

The biggest problem I have with full disk encryption is that there's still no way to include /boot into the BTRFS root partition for snapshotting. Having your kernel images separate from your system snapshots makes rolling back massively painful.

path: 0 1569124, hotness: undefined, score: 1, children: 1
vepro 3 points 3 years ago

You might install an older kernel version from /var/cache/pacman/pkg and then regenerate the initramfs. If not using NVIDIA, it's very easy to have multiple kernels installed (e. g. linux, linux-lts) to have another option if one kernel causes trouble.

I'd generally recommend having the lts or mainline kernel additionally if you use custom kernels, like zen or self compiled

path: 0 1569124 1587582, hotness: undefined, score: 3, children: 0
archlinux
archlinux

@lemmy.ml

login for more options
9804
420
269

The beloved lightweight distro

go to feed...