Btrfs before install notes

From ZENotes
(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
 
  Select device with '''fdisk -l''' ; VM devices starts with V here, as in /dev/'''v'''da1 et
 
  Select device with '''fdisk -l''' ; VM devices starts with V here, as in /dev/'''v'''da1 et
  
==Partitionning==
+
===Partitionning===
  
 
  fdisk /dev/vda
 
  fdisk /dev/vda
Line 27: Line 27:
 
* Use '''w''' to write the modifications and exit the interactive fdisk prompt  
 
* Use '''w''' to write the modifications and exit the interactive fdisk prompt  
  
==Formatting==
+
===Formatting===
  
 
* mkfs.fat -F 32 /dev/vda1
 
* mkfs.fat -F 32 /dev/vda1
 
* mkfs.btrfs /dev/vda2
 
* mkfs.btrfs /dev/vda2
  
==Start mounting an dplaying with BTRFS (04:50)==
+
===Start mounting and playing with BTRFS (04:50)===
  
 
* mount /dev/vda2 /mnt
 
* mount /dev/vda2 /mnt
Line 41: Line 41:
 
  btrfs subvolume create /mnt/@home
 
  btrfs subvolume create /mnt/@home
 
  btrfs subvolume create /mnt/@snapshots
 
  btrfs subvolume create /mnt/@snapshots
 +
 +
* Check your existing subvolumes and their ID :
 +
 +
btrfs subvolume list /
  
 
(Reminder : subvolumes don't create snapshots of nested subvolumes ; here @ won't contain @home or @snapshots data)
 
(Reminder : subvolumes don't create snapshots of nested subvolumes ; here @ won't contain @home or @snapshots data)
 +
 +
* Create mountpoints
 +
 +
mkdir /mnt/efi
 +
mkdir /mnt/home
 +
mkdir /mnt/.snapshots
 +
mkdir /mnt/btrfsroot
 +
 +
* Then Umount the actual /dev/vda2 to replace by the '''@''' subvolume

Revision as of 16:26, 29 November 2023

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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox