
Sudo cp -rf -preserve=all myimage/partition1/* /media/mount_point_partition1/ On most computers, you just need to connect the disk and you can find the mounted partitions in /media folder.Ĭopy the previously copied data to destination partitions using following commands Mount the freshly formatted and partitioned disk. Partition the destination disk into partitions with sizes greater than copied data and should be of the same format and same flags using gparted. Replace /dev/sdX with the corresponding device. Sudo dd if=/dev/sdX of=myimage/mbr.img bs=446 count=1 Sudo cp -rf -preserve=all /media/mount_point_partition2/* myimage/partition2/

Sudo cp -rf -preserve=all /media/mount_point_partition1/* myimage/partition1/

Copy all the files from all the partitions preserving meta data
