Next: help, Previous: check, Up: Command explanations
Copies the file system on the partition from-number to partition to-number, deleting the original contents of the destination partition.
An optional device parameter, from-device can be given, which specifies which device the source partition is on.
Supported file systems:
- ext2, ext3 (provided the destination partition is larger than the source partition)
- fat16, fat32
- linux-swap (equivalent to mkswap on destination partition)
- reiserfs (if libreiserfs is installed)
Example:
(parted) cp /dev/hdb 2 3Copy partition 2 of /dev/hdb (i.e., /dev/hdb2) to partition on 3, on the device Parted was loaded with, destroying the original contents of partition 3.