u/_archmirak_
In this archive from Jun 2017 to Aug 2019
- 4
- posts
- 31
- comments
- 2
- media
- 423
- score
Top posts
Sharing a collection of brief guides that I wrote for installing Arch Linux with LUKS full disk encryption over a UEFI based system... LVM and BTRFS available :)
github.com/archmirak/archlinux-fde-uefiNot downloaded yet
I was looking for my train platform. Well, I guess I'll go for Assamese - INSCRIPT then.
Not downloaded yet
Quick question about the best mounting options for an SSD
Do you guys know which are the best mounting options for an NVMe SSD when using a BTRFS filesystem? I'm already using lzo compression.
If you'd like a more vim-like keyboard-centric approach there's i3, it's an extremely lightweight tiling window manager with massive customization support. I've never looked back after switching to it.
Should be possibile, I've never tried that though. There's a detailed section that you can check out here on the wiki https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Remote_unlocking_of_the_root_.28or_other.29_partition
If you'd like, there are community maintained 32 bit repos of Arch right here https://archlinux32.org, they do have ISOs as well.
That might be true at a quick glance, but actually it's pretty straightforward and easy to configure. Let's quickly work through a minimalist install.
Identify your drive using
lsblk, let's assume it's /dev/sda.Wipe it and create two partitions (will just use ext4 to keep it simple):
shred -vn1 -s100M /dev/sdaparted /dev/sdaWithin parted write the following (use MiB and NOT MB):
mklabel gptmkpart ESP fat32 1MiB 513MiBset 1 boot onmkpart primary ext4 513MiB 100%quitLet's now format and mount our newly created partitions:
mkfs.fat -F32 /dev/sda1mkfs.ext4 /dev/sda2mount /dev/sda2 /mntmkdir /mnt/bootmount /dev/sda1 /mnt/bootInstall Arch onto /mnt, generate fstab then chroot into the newly installed system:
pacstrap /mnt base base-develgenfstab -U /mnt > /mnt/etc/fstabarch-chroot /mntHere follow the guide on the Arch wiki if you'd like to setup users, shells, or whatever else you want.
Now let's get to the bootloader stuff. We'll use systemd-boot.
bootctl --path /boot installNow the EFI binaries are ready within our ESP partition. It will just need a little configuration. Let's start by copying a useful default entry to the ESP:
cp /usr/share/systemd/bootctl/arch.conf /boot/loader/entriesEdit /boot/loader/loader.conf as follows using your favorite editor:
default archtimeout 10editor yesThis will tell the bootloader which boot entry is highlighted by default (the arch one we've copied before), how much time do you have before automatic boot kicks in and finally that you want the capability to edit your kernel command line (if necessary).
Run
blkid /dev/sda2: this will tell you the UUID for your root drive.Edit /boot/loader/entries/arch.conf as follows (the intel-ucode line is necessary only if you do have an Intel CPU and you've install such package):
title Arch Linuxlinux /vmlinuz-linuxinitrd /intel-ucode.imginitrd /initramfs-linux.imgoptions root=UUID=/dev/sda2 UUID goes hereThat tells the bootloader the entry has the specified title, it should load the kernel vmlinuz-linux and should boot using the initramfs-linux.img image.
Done. Of course you can do way more complicated things (I do have a LUKS encrypted BTRFS system, with full disk encryption and Secure Boot self signed boot images) but this is a good starting point to play more around with systemd-boot.
You're booting in UEFI mode, so make sure you're gonna setup Arch correctly for it. About the other two entries, don't worry, those are for the UEFI shell, they boot up in a terminal-like environment (you can do a lot of interesting stuff in there). Pick the first one and go ahead.