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


7.3.4 Copying a File System to an LVM or RAID Virtual Device

To copy a file system from an LVM or RAID virtual device, use the following recipe:

  1. Create the loop disk label on the virtual device. For example:
    (parted) select /dev/md0
    (parted) mklabel loop
    
  2. Create a file system on the virtual device, with the mkpartfs command. For example:
    (parted) mkpartfs primary ext2 0 47.065
    
  3. Copy the partition with the cp command:
    (parted) select /dev/hda
    (parted) cp /dev/md0 3 1
    


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