

Partitioning A Disk Using the command mode If you see an output similar to this, you have successfully entered the command mode. To enter the command mode, we use this command in our terminal. To create partitions, we use the ‘command mode’ of the fdisk command. For this tutorial, we will choose the disk.

Now, we choose one disk from this list to partition. You should get an output similar to the following. Here we called the fdisk command with the -l to list the partitions. You might be prompted to enter your password again to verify your sudo privileges. To view all the partitions currently on your system, we use the following command. This is essential as we need to choose a disk before we partition it. The fdisk utility is a text-based command-line utility for viewing and managing disk partitions on a Linux system.īefore we create a partition on our system, we need to list all the partitions on our system.

In this tutorial, we will utilize the fdisk command to create a disk partition. Creating partitions can also help you install multiple operating systems on your machine and minimize the damage in case of disk corruption. This can help you allocate different memory regions for specific uses. In this tutorial, we’ll be covering the steps to create a partition in Linux.
