As mentioned earlier, parted chooses your first drive by default. To see the disk partitions run print. Now that parted is started, let’s list the partitions of the selected hard disk. If you want to exit parted, simply type: $ quit Unless specified otherwise, parted will use your primary drive, which in most cases will be /dev/sda. Don’t worry if your parted version is different. Run the following command, you see message similar to the one shown on the image below. Once you have make sure that parted is installed, you can proceed further to check out some real world examples of parted command in the rest of this article.
#Create boot partition linux install#
If it is not included in your distro, you can install it with: $ sudo apt-get install parted On many Linux distributions, parted comes pre-installed. Note: You will need to have root access to the machine you will be working on in order to use parted. If you need to work on primary partition, you may boot into rescue mode. To make modifications on a disk partition it must not be in use. If you plan on testing parted, the better option would be to simply use a virtual machine or old computer/laptop without any valuable information on it. If you don’t have any previous experience with parted, please be aware that parted writes the changes immediately to your disk, so be careful if you try to modify your disk partitions.
In this tutorial you will learn the basics of parted and we will show you some practical examples. Parted Command to Manage Linux Disk Partitions Some of it’s functions have been removed, others have been added. Parted has gone a long way from when it first came out.
It can help you add, delete, shrink and extend disk partitions along with the file systems located on them. Parted is a famous command line tool that allows you to easily manage hard disk partitions.