Btrfs before install notes

From ZENotes
Revision as of 16:38, 29 November 2023 by Admin (Talk | contribs)
Jump to: navigation, search

Set up BTRFS before install, according to this guide

(You are booted in the Arch Live environment meant to install Arch on your machine or VM)

Contents

Before Pacstrap

loadkeys for your keyboard
Select device with fdisk -l ; VM devices starts with V here, as in /dev/vda1 et

Partitionning

fdisk /dev/vda

Formatting

Start mounting and playing with BTRFS (04:50)

btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@snapshots
btrfs subvolume list /

(Reminder : subvolumes don't create snapshots of nested subvolumes ; here @ won't contain @home or @snapshots data)

mkdir /mnt/efi
mkdir /mnt/home
mkdir /mnt/.snapshots
mkdir /mnt/btrfsroot
mount /dev/vda2 -o subvolid=256 /mnt
mount /dev/vda2 -o subvolid=257 /mnt/home
mount /dev/vda2 -o subvolid=258 /mnt/.snapshots
mount /dev/vda2 -o subvolid=5 /mnt/btrfsroot
mount /dev/vda1 /mnt/efi

It's pactsrap time now

pacstrap -K /mnt base linux base-devel grub sudo git less nano efibootmgr btrfs-progs snapper snap-pac grub-btrfs tar sudo

Sodding network here man...

And now...

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox