GNU Parted, in GNU's own words, is an industrial-strength package for creating, destroying, resizing, checking and copying partitions, and the file systems on them. This is useful for creating space for new operating systems, reorganizing disk usage, copying data on hard disks and disk imaging. It contains a library, libparted, and a command-line frontend, parted, which also serves as a sample implementation and script backend.
As with fdisk, you invoke parted by using a device, like "sudo parted /dev/sda". This will open an interactive application which will guide you through the partitioning. Unlike fdisk though, parted is a lot more powerful and supports a lot more commands and functions. Here are some of the main commands to work with parted:
mkpart partition_type [filesystem_type] start final_size - Creates a new partition. For example, "mkpart primary fat32 0.0 700" will create a primary partition for the fat32 filesystem which will start at cylinder 0 and go upto 700MB. Filesystem type is optional.
rm partition_number - Removes the partition with the specified partition number
mkfs partition_number filesystem - Makes a filesystem on the specified partition. Filesystem can be ext2, fat16, fat32, linux-swap, reiserfs.
print - Will print the partition table. Typing "print partition_number" will give more information about that specific partition.
quit - Will quit GNU Parted.