Install Incus Containers in a Seperate Drive

So while Installing Incus , during initilization, there is a way to make sure that all the profiles, volumes, images and containers can be stored in a seperate drive. In this case, I'm using a spare 500GB Samsung 850 SATA III SSD. And I'm planning on using BTRFS for my file system.

Here is how I went through it:

All Commands in this post are intended to executed as a non-root user on the host machine

Prerequisites

Install BTRFS related packages:

Identifing the Drive

Find the Device ID using:

Terminal

Output:

In this case my intended device is /dev/sdb as its the only drive corresponding to my 500GB drive. If Unsure, Try the GUI method below:

GUI (Recommended)

I use Pop_OS! for my host machine and it ships with gnome-disks but another popular application would be gparted

In case they are not currently installed in your machine, you can them as follows:

Gnome Disks:

GParted:

Format the Drive:

Terminal

The TL:DR

A Deeper Explaination:

Create a New GPT Partition table:

Create a New Partition (using all available space):

Format the partition as BTRFS:

GUI

DIsks:

Empty Block (Terminal Only)

Reply

or to participate.