Methods of payment Abuse

Parted options and commands

05.10.2023, 00:17

The parted command is a useful tool when installing an operating system or when working with hard drives.

How to install?

To install the parted utility on Linux, you can use the package manager of your distribution.

For example, to install in Ubuntu or Debian, run the following command in the terminal:

sudo apt-get install parted

To install in CentOS or Fedora, run the following command:

sudo yum install parted

After executing these commands, the parted utility will be installed on your system and you can use it to work with partitions on your hard disk.

Parted commands:

  1. mkpart [type] [start] [end]: creates a new partition on the device. The type can be primary, extended, or logical. The beginning and end are specified as percentages or in megabytes/gigabytes/terabytes.
  2. resizepart [partition number] [new size]: changes the size of the specified partition to the new size. The new size is specified as a percentage or in megabytes/gigabytes/terabytes.
  3. rm [partition number]: Deletes the specified partition.
  4. move [section number] [new position]: moves the specified section to a new position. The new position is indicated as a percentage or in megabytes/gigabytes/terabytes.

Note that the superuser (root) rights are required to execute the parted command