In this writing Pardus Btrfs Installation It will be explained how to make disk partitioning with cfdisk, one of the disk partitioning tools mentioned in the 1st part of the article.
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.
Before using disk management tools such as cfdisk and fdisk, you should back up your important data, if any, in order to prevent possible data loss.
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).
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.
We start with the following codes by opening a terminal.
sudo su - apt update apt install btrfs-progs
Let's take a look at the current situation and then write the cfdisk command for the disk we want to partition.
In our system, the disk name is listed as vda. It may be listed as sda or nvme0n1 for you. Edit the command accordingly.
We will continue by choosing the GPT disk structure.
In this window, where information such as disk name and size are located above and the operation menus are located below, the keyboard up-down arrow keys select the disk partition, and the right-left arrow keys perform the desired action. New We make the command selected and continue with enter.
We want to create the efi partition. To adjust the size, press the number and MWe use the first letter of the term egabyte by combining it.
The partition type was automatically set to Linux filesystem along with the sizing. We will change this as needed.
To specify the partition type Type We continue with the command.
We continue by ticking EFI System.
To create an optional swap space, again with the free space selected New We continue with the command and again Megabyte, GWe specify the size in igabytes.
For swap area Type We continue with the command.
We continue by marking the Linux swap type.
With free space selected again New We continue with the command and set the remaining partition as the system partition. Type part automatically linux filesystem appointed as. To write the performed operations to disk Write We continue with the enter key while the command is selected.
We are asked to confirm the configuration process. yes Continue by typing and pressing enter.
A message that the process is complete is displayed.
Quit Exit the application with the command.
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.
Disk partitioning is complete.
Hope it will be useful, see you in other articles...