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 working with hard disks.

How to install?

To install the parted utility in 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 running 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:

mkpart [type] [start] [end]: creates a new partition on the device. The type can be primary, extended or logical. Start and end are specified in percent or megabytes/gigabytes/terabytes.

resizepart [section number] [new size]:resizes the specified partition to a new size. The new size is specified as a percentage or in megabytes/gigabytes/terabytes/terabytes.

rm [section number] [section number]: Deletes the specified partition.

move [section number] [new position]:Moves the specified section to a new position. The new position is specified in percent or megabytes/gigabytes/terabytes/terabytes.

Note that parted requires root privileges to execute the command