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:
- ext2 – restriction: the new start must be the same as the old start.
- fat16, fat32
- hfs, hfs+, hfsx – restriction: the new start must be the same as the old start and the new end must be smaller than the old end.
- reiserfs (if libreiserfs is installed)
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.