Writing to 2 SD cards at the same timeReplicating an SD cardSafely use SD cards when power can go out at any...

Why did the Herschel Space Telescope need helium coolant?

What's up with this leaf?

SOQL Not Recognizing Field?

What language is software running on the ISS written in?

How can I get an unreasonable manager to approve time off?

Is it legal for a bar bouncer to conficaste a fake ID

Determining fair price for profitable mobile app business

How to deal with apathetic co-worker?

What makes Ada the language of choice for the ISS's safety-critical systems?

Why is the tail group of virtually every airplane swept instead of straight?

How did old MS-DOS games utilize various graphic cards?

How to tell your grandparent to not come to fetch you with their car?

How is water heavier than petrol, even though its molecular weight is less than petrol?

Why is one of Madera Municipal's runways labelled with only "R" on both sides?

How to construct an hbox with negative height?

C++ Arduino IDE receiving garbled `char` from function

Arriving at the same result with the opposite hypotheses

What can I, as a user, do about offensive reviews in App Store?

Difference between > and >> when used with a named pipe

What is the actual quality of machine translations?

Second (easy access) account in case my bank screws up

Preventing employees from either switching to competitors or opening their own business

Overlapping String-Blocks

How can I tell the difference between unmarked sugar and stevia?



Writing to 2 SD cards at the same time


Replicating an SD cardSafely use SD cards when power can go out at any timeOutput to stdout and at the same time grep into a fileStress testing SD cards using linuxUsing exec and tee to redirect logs to stdout and a log file in the same timeFinding a unique identifier for SD cardsHow does swappiness affect the longevity of SDHC memory cards in embedded computers?Display all files from a directory with cat at the same timeReact to a writing errorUnable to read SD cards linuxDuplicating SD Cards: file system






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I would like to write an image at two SD cards at the same time. I envision at least two concurrent writing scenarios:




  1. Is it possible to write the image with a tee or similar bifurcating mechanism?


  2. Is it possible to execute the cat command from two different BASH shells?



    sudo sh -c 'cat sdcard.image >/dev/sdb'
    sudo sh -c 'cat sdcard.image >dev/mmcblk0'



I can foresee a problem in that if the two targets can be written at different rates, then it may be necessary to throttle write speed down so as to not overload the slower writer.
The image is large: the ability to burn multiple targets is a significant advantage.










share|improve this question































    0















    I would like to write an image at two SD cards at the same time. I envision at least two concurrent writing scenarios:




    1. Is it possible to write the image with a tee or similar bifurcating mechanism?


    2. Is it possible to execute the cat command from two different BASH shells?



      sudo sh -c 'cat sdcard.image >/dev/sdb'
      sudo sh -c 'cat sdcard.image >dev/mmcblk0'



    I can foresee a problem in that if the two targets can be written at different rates, then it may be necessary to throttle write speed down so as to not overload the slower writer.
    The image is large: the ability to burn multiple targets is a significant advantage.










    share|improve this question



























      0












      0








      0








      I would like to write an image at two SD cards at the same time. I envision at least two concurrent writing scenarios:




      1. Is it possible to write the image with a tee or similar bifurcating mechanism?


      2. Is it possible to execute the cat command from two different BASH shells?



        sudo sh -c 'cat sdcard.image >/dev/sdb'
        sudo sh -c 'cat sdcard.image >dev/mmcblk0'



      I can foresee a problem in that if the two targets can be written at different rates, then it may be necessary to throttle write speed down so as to not overload the slower writer.
      The image is large: the ability to burn multiple targets is a significant advantage.










      share|improve this question
















      I would like to write an image at two SD cards at the same time. I envision at least two concurrent writing scenarios:




      1. Is it possible to write the image with a tee or similar bifurcating mechanism?


      2. Is it possible to execute the cat command from two different BASH shells?



        sudo sh -c 'cat sdcard.image >/dev/sdb'
        sudo sh -c 'cat sdcard.image >dev/mmcblk0'



      I can foresee a problem in that if the two targets can be written at different rates, then it may be necessary to throttle write speed down so as to not overload the slower writer.
      The image is large: the ability to burn multiple targets is a significant advantage.







      cat sd-card tee






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 42 mins ago









      muru

      38.7k593168




      38.7k593168










      asked 1 hour ago









      gatorbackgatorback

      310112




      310112






















          2 Answers
          2






          active

          oldest

          votes


















          0














          This is bare minimum shell script for concurrent copying. If any errors this will throw them to STDERR.



          #!/bin/sh
          echo "Image file ${1}"
          echo "1st SD Card Path ${2}"
          echo "2nd SD Card Path ${3}"

          dd if=${1} of=${2}&
          dd if=${1} of=${3}


          Usage sh script.sh image_file first_card_path second_card_path






          share|improve this answer

































            0















            Is it possible to write the image with a tee or similar bifurcating mechanism?




            sudo tee /dev/sdb /dev/mmcblk0 < sdcard.image





            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f522950%2fwriting-to-2-sd-cards-at-the-same-time%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              This is bare minimum shell script for concurrent copying. If any errors this will throw them to STDERR.



              #!/bin/sh
              echo "Image file ${1}"
              echo "1st SD Card Path ${2}"
              echo "2nd SD Card Path ${3}"

              dd if=${1} of=${2}&
              dd if=${1} of=${3}


              Usage sh script.sh image_file first_card_path second_card_path






              share|improve this answer






























                0














                This is bare minimum shell script for concurrent copying. If any errors this will throw them to STDERR.



                #!/bin/sh
                echo "Image file ${1}"
                echo "1st SD Card Path ${2}"
                echo "2nd SD Card Path ${3}"

                dd if=${1} of=${2}&
                dd if=${1} of=${3}


                Usage sh script.sh image_file first_card_path second_card_path






                share|improve this answer




























                  0












                  0








                  0







                  This is bare minimum shell script for concurrent copying. If any errors this will throw them to STDERR.



                  #!/bin/sh
                  echo "Image file ${1}"
                  echo "1st SD Card Path ${2}"
                  echo "2nd SD Card Path ${3}"

                  dd if=${1} of=${2}&
                  dd if=${1} of=${3}


                  Usage sh script.sh image_file first_card_path second_card_path






                  share|improve this answer















                  This is bare minimum shell script for concurrent copying. If any errors this will throw them to STDERR.



                  #!/bin/sh
                  echo "Image file ${1}"
                  echo "1st SD Card Path ${2}"
                  echo "2nd SD Card Path ${3}"

                  dd if=${1} of=${2}&
                  dd if=${1} of=${3}


                  Usage sh script.sh image_file first_card_path second_card_path







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 41 mins ago









                  muru

                  38.7k593168




                  38.7k593168










                  answered 43 mins ago









                  fossilfossil

                  29114




                  29114

























                      0















                      Is it possible to write the image with a tee or similar bifurcating mechanism?




                      sudo tee /dev/sdb /dev/mmcblk0 < sdcard.image





                      share|improve this answer




























                        0















                        Is it possible to write the image with a tee or similar bifurcating mechanism?




                        sudo tee /dev/sdb /dev/mmcblk0 < sdcard.image





                        share|improve this answer


























                          0












                          0








                          0








                          Is it possible to write the image with a tee or similar bifurcating mechanism?




                          sudo tee /dev/sdb /dev/mmcblk0 < sdcard.image





                          share|improve this answer














                          Is it possible to write the image with a tee or similar bifurcating mechanism?




                          sudo tee /dev/sdb /dev/mmcblk0 < sdcard.image






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 40 mins ago









                          murumuru

                          38.7k593168




                          38.7k593168






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f522950%2fwriting-to-2-sd-cards-at-the-same-time%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                              Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                              Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...