Copyright © tutorialspoint.com
parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux-swap, FAT, FAT32, and reiserfs partitions. It can create, resize and move Macintosh HFS partitions, as well as detect jfs, ntfs, ufs, and xfs partitions. It is useful for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks.
| Tag | Description |
|---|---|
| -h, --help | |
| displays a help message. | |
| -i, --interactive | |
| prompts for user intervention. | |
| -s, --script | |
| never prompt the user. | |
| -v, --version | |
| displays the version. | |
| Tag | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| [device] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The block device to partition. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [command [options]] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Specifies a command to parted. If no command is given, parted will give you
a command prompt. Commands are:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resizing partitions with an ext3 filesystem will not generally work because of the above issue. Use resize2fs(8) to resize the filesystem and resize the partition manually using fdisk(8) or a similar tool. For LVM situations, you will need to use the LVM commands to resize the LVM elements.
Parted also missbehaves when certian type of arguments are used. If the syntax used to describe offsets from the end -1s is used in the command line, -- must be used after OPTIONS so as not to confuse getopt. Eg: parted -s /dev/sdb -- mklabel gpt mkpart primary ext2 1s -1s
Copyright © tutorialspoint.com