Simple wrapper around the "resize partition" ioctl
resizepart device partition length
resizepart is a program that informs the Linux kernel of new partition size.
This command doesn't manipulate partitions on hard drive.
device
Specify the disk device.
partition
Specify the partition number.
length
Specify the length of the partition (in 512-byte sectors).
The resizepart command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.