Forrest logo
back to the resizepart tool

parted:tldr:b3977

parted: Resize a partition in interactive mode.
$ resizepart ${-dev-sdXN} ${end_position_of_partition}
try on your machine

The resizepart command is used to resize a partition on a Linux system.

Here is an explanation of the command:

  • ${-dev-sdXN}: This is a variable representing the path of the partition you want to resize. In Linux, partitions are usually represented as /dev/sdXN, where X is a letter corresponding to the drive and N is a number representing the partition. For example, /dev/sda1 represents the first partition on the first drive.
  • ${end_position_of_partition}: This is a variable representing the new end position of the partition after resizing. It is typically specified in sectors.

By using the resizepart command with the appropriate arguments, you can resize the specified partition to the desired end position. Keep in mind that this command should be used with caution, as resizing a partition can potentially lead to data loss if not done correctly.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the resizepart tool