Next: , Previous: rescue, Up: Command explanations


2.4.14 resize

— Command: resize number start end

Resizes the partition with number number. The partition will start start from the beginning of the disk, and end end from the beginning of the disk. resize never changes the partition number. Extended partitions can be resized only so long as the new extended partition completely contains all logical partitions.

Note that Parted can manipulate partitions whether or not they have been defragmented, so you do not need to defragment the disk before using Parted.

Supported file systems:

Example:

          (parted) resize 3 200M 850M

Resize partition 3, so that it begins 200 megabytes and ends 850 megabytes from the beginning of the disk.