this post was submitted on 20 Jul 2023
50 points (93.1% liked)

Arch Linux

7175 readers
2 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

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.

top 19 comments
sorted by: hot top controversial new old
[–] WheelcharArtist 6 points 11 months ago (2 children)
  1. with GRUB you can go full disk encryption
  2. why should i use your guide of instead of the wiki?
[–] vepro 3 points 11 months 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

[–] [email protected] 1 points 11 months ago (1 children)

AFAIK GRUB itself cannot be encrypted.

[–] vepro 1 points 11 months 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

[–] [email protected] 3 points 11 months 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

[–] [email protected] 1 points 11 months ago (6 children)

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?

[–] evadzs 4 points 11 months ago

I use BTRFS for the Snapper backup/bootable snapshots

[–] [email protected] 3 points 11 months ago

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

[–] axzxc1236 2 points 11 months ago* (last edited 11 months ago)

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

[–] [email protected] 2 points 11 months ago (1 children)

Google ZFS licensing and you know why choose btrfs over zfs

[–] [email protected] 1 points 11 months 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.

[–] Molecular0079 1 points 11 months 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.

[–] vepro 1 points 11 months 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

[–] Molecular0079 1 points 11 months ago (1 children)

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.

[–] vepro 3 points 11 months 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

[–] [email protected] 1 points 11 months ago (1 children)

Nice birds part. Where did you learned that?

[–] vepro 1 points 11 months ago (1 children)

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

[–] [email protected] 2 points 11 months ago (1 children)
[–] vepro 1 points 11 months 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