Resizes the partition with number minor. The partition will start start from the beginning of the disk, and end end from the beginning of the disk. resize never changes the minor number. Extended partitions can be resized, so long as the new extended partition completely contains all logical partitions.
Note that Parted does not require a file system to be "defragged" (Parted can safely move data around if necessary). It's a waste of time defragging. Don't bother!
Supported file systems:
Example:
(parted) resize 3 200 850
Resize partition 3, so that it begins 200 megabytes and ends 850 megabytes from the beginning of the disk.
Go to the first, previous, next, last section, table of contents.