Go to the first, previous, next, last section, table of contents.


2.4.2 cp

Command: cp [from-device] from-minor to-minor

Copies the file system on the partition from-minor to partition to-minor, 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.


Go to the first, previous, next, last section, table of contents.