This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Duplicate or Backup/Restore Linux filesystem between different partitions in MMC card

Hi All,


       I'm working on beagle bone black based custom designed board and it consists of 2GB MMC card and 256MB RAM

       I've partitioned 2GB MMC into 6 partitions ( 1--8MB(P1), 4--256MB(P2,P3,P4,P5), 1--remaining(P6)).

       I've flashed u-boot images to P1 and filesystem (ext4) of size 100MB  to P2 and booting successfully

        I've to clone P2 to P3/P4/P5 at run time based on user input.

        To achieve above cloning process, trying to develop a shell script, Please suggest me the best way of implementation (cloning)

Regards,

Thiru