Next: , Previous: check, Up: Command explanations


2.4.2 cp

— Command: cp [from-device] from-number to-number

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:

Example:

          (parted) cp /dev/hdb 2 3
     

Copy 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.