Btrfs before install notes

From ZENotes
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
(You are booted in the Arch Live environment meant to install Arch on your machine or VM)
 
(You are booted in the Arch Live environment meant to install Arch on your machine or VM)
  
==Before Pacstrap==
+
==Before pacstrap (01:50)==
  
 
  loadkeys for your keyboard
 
  loadkeys for your keyboard
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 (02:05)===
  
 
  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 (02:50)===
  
 
* mkfs.fat -F 32 /dev/vda1
 
* mkfs.fat -F 32 /dev/vda1
Line 63: Line 63:
 
  mount /dev/vda1 /mnt/efi
 
  mount /dev/vda1 /mnt/efi
  
==It's pactsrap time now==
+
==It's pactsrap time now (07:00)==
  
 
  pacstrap -K /mnt base linux base-devel grub sudo git less nano efibootmgr btrfs-progs snapper snap-pac grub-btrfs tar sudo
 
  pacstrap -K /mnt base linux base-devel grub sudo git less nano efibootmgr btrfs-progs snapper snap-pac grub-btrfs tar sudo
Line 70: Line 70:
  
 
===And now...===
 
===And now...===
 +
 +
* check your mount points list for any misstep with '''mount'''
 +
 +
create your fstab file when mount is all ok
 +
 +
genfstab -U /mnt >> /mnt/etc/fstab
 +
 +
Check again with '''less /mnt/etc/fstab'''
 +
 +
'''arch-chroot /mnt''' if everything is good
 +
 +
* you still have to do the usual : vconsole.conf for the keymap, locale-gen for lang etc, see the arch install guide
 +
 +
* Do the mkinit just in case :
 +
 +
mkinitcpio -P
 +
 +
* Install GRUB with this :
 +
 +
add --removable to the grub install line if necessary
 +
 +
then do grub-mkconfig
 +
 +
==then reboot==
 +
 +
--failed at grub / creating bootable system phase--

Revision as of 18:00, 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 (01:50)

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

Partitionning (02:05)

fdisk /dev/vda

Formatting (02:50)

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 (07:00)

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...

* check your mount points list for any misstep with mount

create your fstab file when mount is all ok

genfstab -U /mnt >> /mnt/etc/fstab

Check again with less /mnt/etc/fstab

arch-chroot /mnt if everything is good

mkinitcpio -P
add --removable to the grub install line if necessary

then do grub-mkconfig

then reboot

--failed at grub / creating bootable system phase--

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox