Introduction
In this writing Pardus Btrfs Installation It will be explained how to do disk partitioning with fdisk, one of the disk partitioning tools mentioned in the 1st part of the article.
Preparation
For these processes, which will be described in live environment with Pardus Employee, the computer is started with a bootable USB memory loaded with Pardus.
Warning !
It is important to use disk management tools such as fdisk and cfdisk carefully to prevent possible data loss. Back up your important data on the disk, if any.
Reminding
In this article, which is dedicated to the Pardus btrfs installation article, disk partitioning will be made with the btrfs disk structure. However, partitioning is also possible for other file systems (eg ext4).
Reminding
The btrfs-progs package is not pre-installed in the Pardus iso image file. If we want to build a btrfs system, we must activate this package on the system we will work with. Similarly, if we want to build another file system such as zfs, the zfsutils-linux package must be installed, and for the xfs system, the xfsprogs package must be installed.
Let's start with the following codes by opening a terminal.
sudo su - apt update apt install btrfs-progs
Fdisk
Let's take a look at the current situation and then write the fdisk command for the disk we want to partition.
fdisk /dev/vda
Reminding
In our system, the disk name is listed as vda. It may be listed as sda or nvme0n1 for you. Edit the command accordingly.

Fdisk
After switching to the fdisk command, it proceeds with the letter + enter method.
m lists the commands we can use the letter.

Fdisk
g The new volume is created in the GPT structure with the letter .

Fdisk
n A new partition is created with a letter. p The letter specifies that it will be the primary partition. Megabyte for size, with gigabyte icons M, G letters + used with the sign.

Fdisk
t The letter specifies the partition file system type. L Lists file types that can use the letter. We want to designate the partition as the efi partition and ef We will use the code.


Fdisk
again n after the letter p The new primary partition is created with the letter . This partition can be an optional swap space.
Attention
When creating multiple partitions, be careful with the numbering when you want to specify the partition type. In the example, we created the swap area as the second partition and t When we want to operate with the parameter, we are asked to select the partition number. We continued with part number 2. swap code 82

Fdisk
Finally, again to create the partition where the system will be installed. n letter followed by p We continue with the letter and set the rest of the disk for this space. t We chose Linux as the type with the letter. Linux code 83

Fdisk
w It is ensured that the operations we specify with the letter are written to the disk. When this process is finished, the fdisk command is exited.

Let's take a look at the state of the disk.
fdisk -l

Now let's move on to formatting the partitions where we have specified the size and type information. For this, we will continue with the following codes.
mkfs.vfat -F 32 /dev/vda1 mkswap /dev/vda2 mkfs.btrfs /dev/vda3

We can use the following code to view the status of the disk after formatting.
parted -l

Disk partitioning is complete.
Hope it will be useful, see you in other articles...