Parted doesn't directly support for copying ext2 file systems (yet). There are a few ways of achieving this, however:
# mount -t ext2 /dev/hda2 /mnt/dst # find /mnt/src -depth | cpio -pm /mnt/dst
# dd if=/dev/src-device of=/dev/dst-device bs=1024 count=old_size # parted /dev/hda resize 2 start endwhere old_size is the size of the original partition in kilobytes. start and end are the new start and end for the duplicate partition.
Go to the first, previous, next, last section, table of contents.