

Set Linux Partition Label Create Primary and/or Logical Partition(s) in Linux We will use msdos as it is an ideal recommendation for generic Linux. To create a new partition table type, we need the help of the mklabel command, which lists the possible label types we can use: (parted) help mklabel Linux Parted Command Help Set Linux Partition Table Type
PARTED CREATE BOOT PARTITION MANUAL
Key in ‘ help‘ to view all the commands associated with the parted command, which is a quick and useful reference manual when you find yourself stuck while creating and managing Linux partitions.

The above command should point to the disk label we have selected for partitioning. To select /dev/sda for partitioning (in case we have many disk labels present), we will execute the following parted command. Please note that it is impossible to partition a disk label hosting the operating system you are currently using as such a disklabel will have a primary sector size. $ sudo fdisk -lįrom the above command output, we have identified /dev/sda as the targeted disklabel with a logical/physical sector size. The command helps list the disk labels present on your Linux system making it easier to identify the one that will be used to create the needed Linux partitions. This disk partition tool should be inbuilt into your Linux operating system distribution and you can validate its presence by executing the following command: $ parted -versionĬheck Parted Version Identify Linux Disk Labels This article introduces the use of Parted as an effective disk partitioning tool. Using Parted as a Disk Partitioner for Linux Since disk partitions are critical to the usage and operation of your machine, the power and usage of the Parted tool should be associated with root/sudoer user privileges. With Linux, using a third-party application for disk partitioning is an optional step. While considering disk partitioning in other operating systems (not Linux-based), you are bound to go after a third-party application for you to fully meet your disk partitioning objectives. One cool feature available in all Linux operating system distributions is disk partitioning, which is important as it helps with organizing your files and folders, preventing files and folders conflicts, and also in seclusion of the system files from the user files. When it comes to the usage and mastery of Linux operating systems, you will always find yourselves learning new cool stuff due to its open-source and extensible nature.
